Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Page Break Programmatically
Page Break Programmatically [message #197624] Wed, 25 October 2006 10: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 13:07 Go to previous message
Tomas Vala is currently offline Tomas ValaFriend
Messages: 41
Registered: July 2009
Member
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: Thu Oct 10 23:26:17 GMT 2024

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

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

Back to the top