DataTables Print Preview not showing customized Row Colors

DataTables Print Preview not showing customized Row Colors

BillFotiBillFoti Posts: 2Questions: 1Answers: 0
edited August 2019 in Free community support

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.

Answers

  • BillFotiBillFoti Posts: 2Questions: 1Answers: 0

    This is in a SharePoint Online site, using Bootstrap 4.3.1.
    Landscape works. The following do not work:

    1. <style media="print">
      @page {
      size: landscape;
      }

      • {
        -webkit-print-color-adjust: exact !important;
        }
        }
        </style>
    2. Checking 'Background graphics'

  • sandysandy Posts: 913Questions: 0Answers: 236

    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 the print button. With that you can manipulate the generated HTML for the print table. An example of the customize function can be found here.

    Sorry about this,

    Sandy

This discussion has been closed.