Maybe a solution for print on a new windows

Maybe a solution for print on a new windows

harold_crowharold_crow Posts: 11Questions: 2Answers: 0

Hello Allan, sometime ago you help me with some issues with datatables, so, i needed to print on a new windows so, i start to research for a solution without good news, so i modified the tabletTools.js file and now when you click on print button the print window is on a new window, maybe you could be interested on the code. It has one issue, it needs to refresh the parent window because i didn't find the way to change the classes again to show all the html content.

BEst regards,

Harold

Answers

  • allanallan Posts: 54,703Questions: 1Answers: 8,556 Site admin

    That's cool - I suspect several people would be interested to see how you did it. Its not something I want to put into TableTools core at the moment, as I'm planning a rewrite of that code sometime (which this ability made much easier).

    It has one issue, it needs to refresh the parent window because i didn't find the way to change the classes again to show all the html content.

    I'm not quite sure I understand what you mean. Are the classes hiding the data? Can you just remove the classes?

    Allan

  • harold_crowharold_crow Posts: 11Questions: 2Answers: 0

    Sorry for the delay.

    I found the code where you hide the elements but when i run it to show it doesn't works...

This discussion has been closed.