Print screen or multiple tables with single button

Print screen or multiple tables with single button

crush123crush123 Posts: 409Questions: 125Answers: 18

I have a page with 2 datatables from different (ajax) data sources which i use with a filter to display income and refund summary information on a single page.

Is it possible to print the screen content or send the page content of both tables to pdf with a single button click ?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 57,263Questions: 1Answers: 9,121 Site admin
    Answer ✓

    Not with the pre-built buttons which operate on a single table only. However, it would be quite possible to create a custom button which does what you require.

    Allan

  • jfri_2007jfri_2007 Posts: 25Questions: 6Answers: 0

    hey bro, when you print yours dataTAble , it manteins the align? , i have a problem with that

  • crush123crush123 Posts: 409Questions: 125Answers: 18

    As a quick fix, i just rigged up a print button to print the div which contained both tables

  • allanallan Posts: 57,263Questions: 1Answers: 9,121 Site admin

    @jfri_2007 - No - Printing does not maintain the classes from the original table because of poor performance. You would need to use the customise the print view if you want that - example.

    Allan

  • jfri_2007jfri_2007 Posts: 25Questions: 6Answers: 0

    ty allan i solved it!

This discussion has been closed.