IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Page Break when using HTMLFORM
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Silver Member
Posted
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.
 
Posts: 33 | Registered: December 21, 2005Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
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



WF Server: 7.1.6 on Z/OS and Linux, ReportCaster, Self-Service, MRE, Java
Data: DB2, DB2/UDB, Adabas, SQL Server Output: HTML,PDF,Excel2K
WF Client: Linux w/WebSphere, Servlet, CGI
 
Posts: 1316 | Location: Salt Lake City, Utah | Registered: February 02, 2007Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
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



Env 1: WebFOCUS 5.3.2 Servlet - MRE/BID/Self Service/ReportCaster - MS Windows Server 2003 - IIS/New Atlanta ServletExec - MS SQL Server 2000 - DataMigrator 5.3.4
Env 2: WebFOCUS 7.6.5 Servlet - MRE/BID/Self Service - MS Windows XP SP2 - Apache Tomcat/5.5.25 - MS SQL Server 2000
Env 3: WebFOCUS 5.3.3 CGI - Self Service - AIX 5.2 - IBM DB2
Output formats: HTML, Excel 2000 and PDF
 
Posts: 3379 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteEdit or Delete MessageReport This Post
Silver Member
Posted Hide Post
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.
 
Posts: 33 | Registered: December 21, 2005Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
I tested the code on IE6 and Firefox 3.


Francis



Env 1: WebFOCUS 5.3.2 Servlet - MRE/BID/Self Service/ReportCaster - MS Windows Server 2003 - IIS/New Atlanta ServletExec - MS SQL Server 2000 - DataMigrator 5.3.4
Env 2: WebFOCUS 7.6.5 Servlet - MRE/BID/Self Service - MS Windows XP SP2 - Apache Tomcat/5.5.25 - MS SQL Server 2000
Env 3: WebFOCUS 5.3.3 CGI - Self Service - AIX 5.2 - IBM DB2
Output formats: HTML, Excel 2000 and PDF
 
Posts: 3379 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Page Break when using HTMLFORM

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.