gray background in all cells prevents printing

how can I change this?

It might be, that the document has print ranges defined. Go to Format > Print Ranges. If Clear is enabled, click on it.

In case, that is not the reason, you should provide more information: Is only one special document affected? Can you provide the document? Operating system, LibreOffice version, Printer?