Skip to main content



      Home
Home » Archived » BIRT » Page break behaviour in BIRT 2.5.1
Page break behaviour in BIRT 2.5.1 [message #511614] Tue, 02 February 2010 04:30 Go to next message
Eclipse UserFriend
Originally posted by: thilo.bruesshaber.gmail.com

Hi,

currently I'm developing my reports in BIRT 2.2.2.
In the future I want to use the feature of IProgressMonitor, so I have
to migrate to BIRT 2.5.1.
In my reports I have set the layout preference to "Fixed Layout".
The page break interval of tables is set to 50 rows.
In 2.2.2 in HTML all the 50 rows are displayed on on page. In PDF the
rows do an automatic page break when the height of the page is reached.
This is the behaviour I expect.
But in 2.5.1 the page in HTML behaves if it was a PDF document.
The table rows do a page break when the page height is reached.
So how can I force the page break in HTML to work like in 2.2.2.
That means: Don't do a page break in HTML even when the page height is
reached.
Any suggestions?

Cheers,
Thilo
Re: Page break behaviour in BIRT 2.5.1 [message #511765 is a reply to message #511614] Tue, 02 February 2010 08:28 Go to previous messageGo to next message
Eclipse UserFriend
Thilo,

Can you turn off fixed layout? Or setup a master page for html that is
large.

Jason

Thilo Bruesshaber wrote:
> Hi,
>
> currently I'm developing my reports in BIRT 2.2.2.
> In the future I want to use the feature of IProgressMonitor, so I have
> to migrate to BIRT 2.5.1.
> In my reports I have set the layout preference to "Fixed Layout".
> The page break interval of tables is set to 50 rows.
> In 2.2.2 in HTML all the 50 rows are displayed on on page. In PDF the
> rows do an automatic page break when the height of the page is reached.
> This is the behaviour I expect.
> But in 2.5.1 the page in HTML behaves if it was a PDF document.
> The table rows do a page break when the page height is reached.
> So how can I force the page break in HTML to work like in 2.2.2.
> That means: Don't do a page break in HTML even when the page height is
> reached.
> Any suggestions?
>
> Cheers,
> Thilo
Re: Page break behaviour in BIRT 2.5.1 [message #511845 is a reply to message #511765] Wed, 03 February 2010 03:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thilo.bruesshaber.gmail.com

Hi Jason,

turning of the fixed layout is not possible, because I don't want to use
absolute sizes in my reports other than the page width.
That means for example that the header width and the footer width is
always 100%.
I could set up a second master page for HTML, but how can I bind this to
HTML?

--Thilo

> Thilo,
>
> Can you turn off fixed layout? Or setup a master page for html that is
> large.
>
> Jason
>
> Thilo Bruesshaber wrote:
>> Hi,
>>
>> currently I'm developing my reports in BIRT 2.2.2.
>> In the future I want to use the feature of IProgressMonitor, so I have
>> to migrate to BIRT 2.5.1.
>> In my reports I have set the layout preference to "Fixed Layout".
>> The page break interval of tables is set to 50 rows.
>> In 2.2.2 in HTML all the 50 rows are displayed on on page. In PDF the
>> rows do an automatic page break when the height of the page is reached.
>> This is the behaviour I expect.
>> But in 2.5.1 the page in HTML behaves if it was a PDF document.
>> The table rows do a page break when the page height is reached.
>> So how can I force the page break in HTML to work like in 2.2.2.
>> That means: Don't do a page break in HTML even when the page height is
>> reached.
>> Any suggestions?
>>
>> Cheers,
>> Thilo
Re: Page break behaviour in BIRT 2.5.1 [message #511956 is a reply to message #511845] Wed, 03 February 2010 09:26 Go to previous message
Eclipse UserFriend
If you re-run the report for each format you should be able to setup two
master pages and use a script similar to this in the before factory:

rptDesignHandle = reportContext.getDesignHandle();
tbl = rptDesignHandle.findElement("mytable");

var myoutputformat = reportContext.getOutputFormat();
if( myoutputformat == "pdf" ){
tbl.setProperty("masterPage","MasterPageTwo");
}else{
tbl.setProperty("masterPage","MasterPageOne");
}

Note that the table was named.

Jason

Thilo Bruesshaber wrote:
> Hi Jason,
>
> turning of the fixed layout is not possible, because I don't want to use
> absolute sizes in my reports other than the page width.
> That means for example that the header width and the footer width is
> always 100%.
> I could set up a second master page for HTML, but how can I bind this to
> HTML?
>
> --Thilo
>
>> Thilo,
>>
>> Can you turn off fixed layout? Or setup a master page for html that is
>> large.
>>
>> Jason
>>
>> Thilo Bruesshaber wrote:
>>> Hi,
>>>
>>> currently I'm developing my reports in BIRT 2.2.2.
>>> In the future I want to use the feature of IProgressMonitor, so I have
>>> to migrate to BIRT 2.5.1.
>>> In my reports I have set the layout preference to "Fixed Layout".
>>> The page break interval of tables is set to 50 rows.
>>> In 2.2.2 in HTML all the 50 rows are displayed on on page. In PDF the
>>> rows do an automatic page break when the height of the page is reached.
>>> This is the behaviour I expect.
>>> But in 2.5.1 the page in HTML behaves if it was a PDF document.
>>> The table rows do a page break when the page height is reached.
>>> So how can I force the page break in HTML to work like in 2.2.2.
>>> That means: Don't do a page break in HTML even when the page height is
>>> reached.
>>> Any suggestions?
>>>
>>> Cheers,
>>> Thilo
>
Previous Topic:Problem in pdf
Next Topic:BIRT throws NullPointerException
Goto Forum:
  


Current Time: Tue Jul 08 15:35:15 EDT 2025

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

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

Back to the top