I am facing a challenge with printing a very large HTML table, which is dynamic in the sense that the number of rows and columns can vary. When printing, the rows that exceed the page length are automatically continued on the next page. However, I also need any overflowing columns to be printed on a separate page.
After conducting extensive research, I have been unable to find a straightforward solution to achieve this without resorting to trial and error methods. Currently, my approach involves printing a set number of columns per page.
Is it possible to use CSS properties like page-break-after
or page-break-before
to address this issue? If so, how can it be implemented?