Is possible print in PDF group header with different color?

Is possible print in PDF group header with different color?

miguelrebmiguelreb Posts: 3Questions: 1Answers: 0

Hi all,

I have a datatable with group header, i export a pdf the datatable with the group headers, all ok, but i want print the header group in other color... and i dont know to do it.

How would it be possible?

Thanks!

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    Hi @miguelreb ,

    This thread should help (example here), it's asking the same thing.

    Cheers,

    Colin

  • miguelrebmiguelreb Posts: 3Questions: 1Answers: 0

    Hi @colin ,
    I refer to row grouping not the table header... i didnt know to do.
    Is possible?
    Thanks.

  • miguelrebmiguelreb Posts: 3Questions: 1Answers: 0
    edited April 2019

    Hi all,
    i did it...
    My datatable has 4 colums, in the row grouping only has text the first column... so that in the customize of the table i did it:

                 tabla = doc.content[1].table;
                 for (var i = 0; i < tabla.body.length; i++) {
                   if (tabla.body[i][1].text=="") {
                     tabla.body[i][0].fillColor='grey';
                     tabla.body[i][1].fillColor='grey';
                     tabla.body[i][2].fillColor='grey';
                     tabla.body[i][3].fillColor='grey';
                   }
                 }
    

    I check all the table and check the 2 column, if it is empty i color the filling.
    Regards to all.

This discussion has been closed.