HP Photosmart C8180 All-in-One Printer uses one black and multiple color ink cartridges. You will not be able to print if any one of the ink cartridges is empty or not installed in the printer.
You may change the print settings on the PC to print only in Black/Greyscale
Refer to this document for more info on print settings. Check Color and black & white settings.
Let me know how this goes.
If you feel my post solved your issue, please click “Accept as Solution”, it will help others find the solution. Click the “Kudos/Thumbs Up" on the bottom right to say “Thanks” for helping!