Most Printers use a dedicated black cartridge for printing text so it is quite possible that text only is affected - table borders would not be printed with text characters.
1) Check the ink levels in the cartridges, if any are low they need replacing ideally with HP cartridges
2) Clean the cartridges
a)In the HP Solution Center, click Settings. In the Print Settings area, click Printer Toolbox.
b)Click Clean the Print Cartridges.
c)Click Clean, and then follow the onscreen instructions.
3)Clean the contacts
Turn on the printer and open the print cartridge door.
The print carriage moves to the centre.
Wait until the print carriage is idle and silent, and then unplug the power cord from the back of the printer.
Lightly press down on the print cartridge to release it, and then pull it towards you out of the slot.
NOTE: Do not remove both print cartridges at the same time. Remove and clean each print cartridge one at a time. Do not leave a print cartridge outside the HP All-in-One for more than 30 minutes.
Inspect the print cartridge contacts for ink and debris buildup.
Dip a clean foam rubber swab or lint-free cloth into distilled water, and squeeze any excess water from it.
Hold the print cartridge by its sides.
Clean only the copper-colored contacts. Allow the print cartridges to dry for approximately ten minutes.