Hi All, I have a report generated from a database retrieve statement. The page(s) that come from the report have headers on each page. Sometimes each page will have different fonts added to the text. Is there a way of inserting some code or escape sequence in the HTML document that could force a particular section onto a new page? For example, if I printed I could print, let's say, 50 lines. The report that came back from the database retrieve takes up 40 lines in the HTML "page preview" and the header of the next page from the retrieve shows up (10 HTML equivalent lines). Basically I want to know if there is a way I could edit the document and insert something after the last line of the retrieve report (basically on line 41 of the HTML document) that could force a new page? Really appreciate help on this one.
The only soluntion I could think for the way you explained it is rather ugly in my eyes.
Have a parent page that gets code that determines how many lines are in your report. This page then opens up pop up windows that sends out a query string to a page that says lines reportGrabber.jsp?startLine=200&endLine=300
The blog talks about closing them, you can also make it print all of them etc. Why it is ugly. If you want a person to print the windows then it will require a prompt for every window. If you are talking about IE only, then you could look into activeX to control the printing. The printing could be as easy as onload events on the "reportGrabber.jsp" page or a function that is called on the parent(opener) page.
Hope that helps you out a little, no real easy solution. Eric