Table borders dissapear on printing table
Table borders dissapear on printing table
 misterminit            
            
                Posts: 2Questions: 2Answers: 0
misterminit            
            
                Posts: 2Questions: 2Answers: 0            
            I have a large datatable that needs to be printed by using the print button option.
When i click the button, the PDF gets generated, but sometimes with and sometimes without the borders visible.
The generated PDF can be more than 100 pages long.
Custom code:
          customize: function ( win ) {
            $(win.document.body).find( 'table' ).addClass( 'printable').css('font-size', '10pt');
                        $(win.document.body).find('th').css('border', '1px solid #000');
            $(win.document.body).find('tr').css('border', '1px solid #000');
                        $(win.document.body).find('td').css('padding', '5px');
                        $(win.document.body).css('background-color', '#FFF');
                    },
Answers
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin