Sounds like you have a multi-function printer/fax/scanner/copier. I had a similiar problem and it ended up being the internal power supply, not the cord. If you still need the cord, try this website:
Hewlett Packard (HP) Part Number 81210517: PC / Server Power Cords Part Numbers
HP usually makes good printers, but I have sinced swithed to using a Brother mutifunction printer and it has been working for several years without a problem.
Good luck.