Hello,
First check if the printer is compatible with Windows 7.
You can type your model number in the below link and check:
http://www.microsoft.com/windows/compatibility/windows-7/en-us/default.aspx
Uninstall all the hp printer drivers from the computer.
Go to hp site, type your exact model number of the printer download the latest drivers.
Once you download the latest drivers install it on the computer and check if the issue gets resolved.
This links are for reference:
http://windows.microsoft.com/en-US/windows-vista/Troubleshoot-printer-problems
http://windows.microsoft.com/en-US/windows7/Find-and-install-printer-drivers
Hope it helps.