Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Page break based on output type
Page break based on output type [message #256886] Wed, 03 October 2007 14:19 Go to next message
Bidyut Pattanayak is currently offline Bidyut PattanayakFriend
Messages: 49
Registered: July 2009
Member
Hi,

Is there a way to do page break based on output type? For example I don't
want page break in case of xls report. How do I set the page break for the
group row and in detail row? I am running BIRT 2.1.3.

Any help would be appreciated.

Thanks
Bidyut
Re: Page break based on output type [message #257092 is a reply to message #256886] Thu, 04 October 2007 16:04 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Bidyut,

Can you try something like this in the beforeFactory. Be sure to name
your table and set the page break in the group like you want it for html.

myoutputformat = reportContext.getOutputFormat();


if( myoutputformat != "html" ){

tbl = reportDesignHandle =
reportContext.getReportRunnable().designHandle.getDesignHand le().findElement( "mytable");

grp = tbl.getGroups().get(0);

grp.setProperty("pageBreakAfter", "avoid" );

grp.setProperty("pageBreakBefore", "avoid" );

}


Jason

Bidyut Pattanayak wrote:
> Hi,
>
> Is there a way to do page break based on output type? For example I don't
> want page break in case of xls report. How do I set the page break for the
> group row and in detail row? I am running BIRT 2.1.3.
>
> Any help would be appreciated.
>
> Thanks
> Bidyut
>
>
Previous Topic:How does the new "Allow Multiple Values" Parameter Option work?
Next Topic:using .jar/Java class files within BIRT
Goto Forum:
  


Current Time: Sat Nov 09 06:17:05 GMT 2024

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

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

Back to the top