Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Avoid Page breaks inside table group and details sections
TomWoods
I am using 2.3.1.
In rptdesign file, I have a table having group added into it.
I am trying to fix issues..
1) In some cases, on generated pdf report, group header is coming on one page and its details are coming on next page.
2) In some cases, on generated pdf report, group header is itself get spiltted across multiple pages. So on page 1, partial hedear gets printed and on next page remaining header and its deatail section gets printed.
I cannot set page interval to fix this as height of each row is not fixed.
I didnt find keep together kind of property here.
I tried to search many properties by which I can control page breaks, but didnt get required one at least in this version.
Any idea/solution for this?
Thanks in advance.
-Tom
Find more posts tagged with
Comments
gcottle
Tom,
BIRT 2.5 has a new feature which should prevent this from happening - the "avoid break" option. Can you use BIRT 2.5, and if so have you tried that ?
As you say, since your row height is not fixed the break interval cannot be used in this situation.
If you can't use BIRT 2.5 and can't fix the row height, it will be difficult to implement a workaround. You would probably need to implement a script in e.g. the row's onCreate() method to dynamically either readjust the row height or force a page break so that the contents appear on the next page.
Regards,
Graham
TomWoods
gcottle,
Thanks for reply.
Actually its difficult for me to migrate to 2.5 now.
Regarding row height we can not predict as group's detail can have any number of rows depeding upon data so each row can vary its height depedning upon how many sub rows apprearing inside.
-Tom
TomWoods
Graham,
Is there any way we can find out in script how much heignt previous row has taken ?
-Tom
TomWoods
Any way to solve the problem mentioned?
Any help will be really appreciated.
-Tom
gcottle
Tom,
Just to let you know I'm still looking into it. If we can calculate the space taken by the previous row then it should be possible to calculate the whole space taken by the table thus far. That would help us to decide whether a page break should be forced on the current row.
Regards,
Graham
gcottle
Tom,
Hope you had a good Christmas!
It appears that the value of the previous row’s dynamic height isn’t available. Even if it were available it would take some considerable coding effort to implement a workaround which allows for grouped headers.
It might be easier to invest the effort in migrating to BIRT 2.5.
Regards,
Graham