Print DataTable with many columns or big data

Print DataTable with many columns or big data

lazluizlazluiz Posts: 2Questions: 1Answers: 0

I know this has been asked before, probably it's still not possible to make the table responsive to printing/PDF exporting.

But is there a way I can make the columns go to a new page when they don't fit?

My situation: http://prntscr.com/hp2csi

PS: It will not only happen with many columns, but also when I have big values on columns.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 47,757Questions: 1Answers: 6,828 Site admin
    Answer ✓

    I fear this is a question for the pdfmake folks. At the moment all the PDF export does is create a table based on the data available in the table and sends it over to pdfmake. At that point it will do the layout, and if it hits limits the layout can look rubbish.

    Landscape might be one option, or using A3 or other paper size. Beyond that, I'm not sure to be honest.

    Allan

  • lazluizlazluiz Posts: 2Questions: 1Answers: 0

    Thank you Allan.

    Yeah I will contact them if there's a solution for this. I'm also trying to do something on the pdfmake code. But the ideal would be that it worked for both PDF and printing.

  • Jeff AJeff A Posts: 50Questions: 8Answers: 0

    lazluiz, I have the same issue. Were you able to resolve it with pdfmake?

Sign In or Register to comment.