Skip to main content



      Home
Home » Archived » BIRT » Page Break Programmatically
Page Break Programmatically [message #197624] Wed, 25 October 2006 06:22 Go to next message
Eclipse UserFriend
Originally posted by: pietro.marrone.poste.it

Is it possible to set programmatically a Break page?
For example when a field from dataset row is "true" then apply the page
break.

Regards
Re: Page Break Programmatically [message #197646 is a reply to message #197624] Wed, 25 October 2006 09:07 Go to previous message
Eclipse UserFriend
Hello,

Yes it is possible. One feasible method to handle page braking is using
JavaScript code on "OnRender" event of report element.

Sample:
if (row["PageBreakAfter"] == true) {
this.getStyle().pageBreakAfter = "always";
} else {
this.getStyle().pageBreakAfter = "avoid";
}

Tomas

"Pietro" <pietro.marrone@poste.it> p
Previous Topic:Using stored procedure as data source
Next Topic:Running the ReportEngine under an Eclipse 2.1 Platform
Goto Forum:
  


Current Time: Sun May 11 20:30:09 EDT 2025

Powered by FUDForum. Page generated in 0.03109 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top