Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
If there are two tables, i wanted a page break to get inserted automatically based on the datas available in table 2.
Posted
Comments
Sergey Alexandrovich Kryukov 13-Aug-11 18:09pm    
And? A problem? :-)
--SA

1 solution

You can set the page break css on window.onload of javascript.
JavaScript
if(table2.style.offsetHeight > myPageHeight)
    table2.style.pageBreakBefore="always";

Hope this will help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900