Home
Analytics
Table Page Break Interval behavior
mcremer
Good day all,
I've encounter what I find strange behaviour of how Eclipse BIRT go's about with its Page Break Interval. The problem is I only notice it when I use the PDF (that's really fixed to A4 paper size (297 mm x 210 mm))
Now what the situation is. I have a large set of data that I group. Now because its such a large set of data its logical to want to make use of the paper as much as possible.
How ever it seems not to completely do that. Somewhere in the middle It puts a page break in the middle (for the rest it works fine).
By Default the page break intervalis 40, if I tweak this for example it will keep track and do exactly 28 details rows however it does not count footer or headers with that. Witch what you would expect.
Eny one else seen this problem? Or is it just me?
Find more posts tagged with
Comments
mcremer
Afther a bit more digging I found that the is the couse from somting I think shoud not effect it.
For a good layout We use Grids and put our elements in these grids.
We got 1 main grid (1colum version) that has 3 rows the first row has a spacing of 32 mm. The second row contains a grid with some information about the rapport and a table telling what kind of parameters are given (if there are eny). This grid has a page break afther always set.
Then we have a row and a grid in there were we put the rest of the repport.
If I remove the forced page break the layout works as expected. It seems BIRT has a hard time processing the forced page brake.
mwilliams
Can you recreate this with the sample database and attach the report? Have you tried making your table page break intervals 0?
mcremer
Sorry for the sami late response (time difrence is somtimes a hassle).
I made 2 reports.
The first one is without a Grid to help front page etc.
The second is with grids to help layout a bit more (as all our reports are done) then you see a different behavior in the page breaks.
Secondly both have a script that should supress the repeating Productline but should make it visble on a page break. However it seems that the Table Page break does not go like it should..
It seems that when you run it in PDF it takes the page size in account but does not use the pagebreak when it has to do this to fit.
This is also a big difrence between for example web viewer and PDF.
If you would first watch as a webviewer and then go to pdf the page numbering is off (witch is semi logical but not prefered somtimes).
mwilliams
I believe this was a bug in 2.6.1 and this same scenario would work correctly in 2.6.2. The end of page events weren't called correctly when you ran into a natural page break in 2.6.1. You might download 2.6.2 just to try it out to see if it does what you expect.
mcremer
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="78247" data-time="1307632242" data-date="09 June 2011 - 08:10 AM"><p>
I believe this was a bug in 2.6.1 and this same scenario would work correctly in 2.6.2. The end of page events weren't called correctly when you ran into a natural page break in 2.6.1. You might download 2.6.2 just to try it out to see if it does what you expect.<br /></p></blockquote>
<br />
Then I got a problem I am using the iServer Express and the Desinger Pro and the iServer Ecprexpress has Birt 2.6
mwilliams
SP2 should be available for Actuate 11 sometime later this year, I think. That will upgrade to 2.6.2. Hopefully it comes sooner than later. You say that 28 rows fits in a page including the headers and footers, right. So, for a workaround for the time being, you could force page breaks in script where needed based on your row count of 28. You'd initialize a variable to 0 in the initialize script, increment it in the header, group header, detail row, and group footer row's onCreate script. When you reach your count of 28, you'd set the pageBreakAfter to "always" in script and reset your count to the number of table header rows that are repeated to each page. If you just have a single header row, you'd reset it to 1, if two, 2, etc. Then the onCreate scripts would start over incrementing the variable then forcing the page break, etc. This should cause your pageNumbers to be correct in PDF and take into account your group headers and footers to not mess up your 28 count. Hope this helps. Let me know if you have questions.
mcremer
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="78559" data-time="1308170135" data-date="15 June 2011 - 01:35 PM"><p>
SP2 should be available for Actuate 11 sometime later this year, I think. That will upgrade to 2.6.2. Hopefully it comes sooner than later. You say that 28 rows fits in a page including the headers and footers, right. So, for a workaround for the time being, you could force page breaks in script where needed based on your row count of 28. You'd initialize a variable to 0 in the initialize script, increment it in the header, group header, detail row, and group footer row's onCreate script. When you reach your count of 28, you'd set the pageBreakAfter to "always" in script and reset your count to the number of table header rows that are repeated to each page. If you just have a single header row, you'd reset it to 1, if two, 2, etc. Then the onCreate scripts would start over incrementing the variable then forcing the page break, etc. This should cause your pageNumbers to be correct in PDF and take into account your group headers and footers to not mess up your 28 count. Hope this helps. Let me know if you have questions.<br /></p></blockquote>
<br />
I dont even know if im using SP1 to be honest. Im so used to using P2 in my normal eclipse envyroments (I don tuse update in the BirtPro becouse it messes up splaschreen and icnons).<br />
<br />
Ill look in to the work around th edeadline for the report in question moved a bit.
mwilliams
I guess it could have been a bug in 2.6.0 too. Let me know if you run into issues with the workaround!
elanchezhiyan
<p>Hi I am new to birt report design. in my report i have two tables in single page and then one master page ,the problem i face is if i set the page break interval as 11 in second table and the second table contain n no of rows.if i generate a pdf report second table rows continues on two more pages. even if have enough space in page its displays only 11 records on each page . plz find my attachment.</p><p> </p><p> </p><p> </p><p>warm®ard</p><p>elan</p>
mwilliams
<p>What is your version? If using 3.7+, you should be able to simply set the page break to 0 on the second table as long as the layout is set to fixed.</p>
elanchezhiyan
<p>my version is Eclipse BIRT Designer Version 4.2.2.v201301221637 but if follow the above instruction its wont work let me knw some other way</p><p> </p><p>Thanks</p><p> </p><p>regards</p><p>elan</p><p> </p>
mwilliams
<p>Are you sure you're using a fixed layout? Click on a blank area in your report, go to the property editor's general tab, scroll to the bottom, and make sure that fixed is selected. If it is selected, can you attach your report to this thread so I can take a look? Thanks.</p>
elanchezhiyan
<p>Hi, Sorry for the late reply. yes i am using fixed layout. Please find the attachment for report design.</p>
mwilliams
<p>So, this doesn't do what you're wanting?</p>
Rani
<p>Michael,</p>
<p> </p>
<p>I am trying to set the runtime page break interval based on the number of rows return by the dataset. How can I achieve this. can you please share some ideas on this task. This is for news paper style report with group headers in the middle of each column.</p>
<p> </p>
<p>Thanks.</p>