Windows 8 compatibility issue with older printers:
HP Photosmart C4580 All in One doesn't print with Windows 8 ... - HP Support Forum - 2482109
Windows 8 and printer compatibility - Microsoft Community
Usually caused by manufacturers not updating drivers or just not supporting older hardware for new operating systems.
If the printer worked for Vista and now is unrecognized on 8, it's most likely a driver issue.