Focal Point
Page Break when using HTMLFORM

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4281028992

September 18, 2008, 10:03 PM
atc12345
Page Break when using HTMLFORM
Does anyone have any examples of how they issued page break commands when holding and displaying graphs/reports using "htmlform"? I have a procedure which produces several graphs which I display using htmlform.

 
-HTMLFORM BEGIN<BR>
!IBI.FIL.GRAPH1<BR>
!IBI.FIL.GRAPH2<BR>
....<BR>
-HTMLFORM END
 

I could have up to 10 graphs to display and need to page break after every-other graph. I've tried using
and pageBreakAfter="always" but some browsers don't support this command.
The question sound simple, but I'm not quite sure what you are trying to accomplish. The concept of "pages" in HTML is quite nebulus. For the most part, everything is on the same "page" you just keep scrolling down. If you're trying to print, page-breaks aren't really respected without some additional trickery. If one user's resolution is higher than another's then what they see on a page (a single screen's view) is not the same. Based on your "every other graph" requirement, I would suggest a compound report and PDF format.

What is it you are trying to manage with your paging requirement?


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
To force page breaks for printing purposes in HTML files, you may use the page-break-before or page-break-after properties.

CSS page-break-before Property

Here's a fex that generates an HTML page. When you print this page, three pages are printed:

-HTMLFORM BEGIN
<style TYPE="text/css">
br
{
page-break-before: always
}
</style>

AAA
<br>
BBB
<br>
CCC
-HTMLFORM END



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Thanks Darin and Francis. What Francis suggested was what I was looking for. Some browsers however do not support the "page-break-before" CSS command and I was just curious wheather someone used something different.
I tested the code on IE6 and Firefox 3.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server