DataTables Print Preview not showing customized Row Colors
DataTables Print Preview not showing customized Row Colors

I have a customize function for Print that sets the background color to Gray for certain rows.
That part works. The print view shows the customized row background color.
However, in Chrome, I print (Ctrl+P) and the background color disappears in the print preview.
This discussion has been closed.
Answers
This is in a SharePoint Online site, using Bootstrap 4.3.1.
Landscape works. The following do not work:
<style media="print">
@page {
size: landscape;
}
-webkit-print-color-adjust: exact !important;
}
}
</style>
Checking 'Background graphics'
Hi BillFoti,
Sorry to say that the table rows aren't currently copied across at the moment. I have filed a feature bug for this.
A workaround could be to use the
customize
function of theprint
button. With that you can manipulate the generated HTML for the print table. An example of thecustomize
function can be found here.Sorry about this,
Sandy