Background color on print export

Background color on print export

osamajavedosamajaved Posts: 12Questions: 6Answers: 0

Hi
I have a datatable with background colors in cells. But on print, it does not show the background color.
this is how I am doing in print customize function:

$(win.document.body).find('table.css('background-color', '#cccccc');

Thanks.
Usama

Answers

  • osamajavedosamajaved Posts: 12Questions: 6Answers: 0
    edited June 2019

    $(win.document.body).find('table tbody td').css('background-color', '#cccccc');

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Hi @osamajaved ,

    This example might help, if you haven't worked it out already.

    Cheers,

    Colin

This discussion has been closed.