How to print a html table with many columns

I am trying to print a table with a large number of columns, so the table width is not suitable for one page.

I am using jqprint to print this table. But it prints only the left side of the table, and on the right side it will not be printed. Is there a way to print a spreadsheet across multiple pages?

Regards, Bruno

+3
source share
3 answers

I would calculate the size for each column that you need, and when you see that it will no longer fit your paper, put it from this column into a new table. and so on ... until you have made the whole table. And put some page breaks after each table.

+4
source

using CSS you can specify page breaks.

Have a look here www.w3Schools.com for help. See javascriptkit.com for a tutorial.

+2
source

You should get the data from the table. think of tr as ol and of each td as oh. the lists will print pretty on the landscape or on the portrait, and you could put a page break before each ol.

pagebreaks do not work / are not allowed in the table.

+1
source

Source: https://habr.com/ru/post/1748356/


All Articles