DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   How to create Dynamic Page Break in HTML? (http://www.daniweb.com/forums/thread40573.html)

jefferyylc Mar 5th, 2006 10:28 pm
How to create Dynamic Page Break in HTML?
 
Hi ALL:

I been created a <page-break-after:always> for page break purpose in printing HTML report in order to break the report.
But unluckily i found that what i did is known as "hard coded". They want something called "Dynamic Page Break" so that when the report content can automatically fit the A4 paper size (210*297mm), and so the user can choose to print whatever page they want. (page number will be showed after each page break). Do anyone can help me or provide some idea? Mayb i think that that's only way is to use javascript to test the height of report elements. I'm just a trainee in company, and i try for this almost 2 weeks but still can't get to find any solutions.
I do really appreciate if there's someone expert will help. Thanks a lot! :eek:

DaveSW Mar 6th, 2006 7:49 am
Re: How to create Dynamic Page Break in HTML?
 
Page breaks in html... not good...
Could you export to pdf? php can be used to create pdfs.

jefferyylc Mar 6th, 2006 9:07 am
Re: How to create Dynamic Page Break in HTML?
 
Quote:

Originally Posted by DaveSW
Page breaks in html... not good...
Could you export to pdf? php can be used to create pdfs.


-The only way i can do is using Page Break in HTML. The others method was rejected. so someone who knw pls share it. I appreciate it. TQ ...


All times are GMT -4. The time now is 11:48 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC