Create Report with a Title Page [message #651873] |
Tue, 01 February 2011 15:42  |
Eclipse User |
|
|
|
Hopefully this is a simple question, but I've not been able to find an answer by searching the web --
How do I set up a report so the first page has one layout, and all following pages have a different layout? I assume this involves multiple masterpages, but I haven't found how to control masterpage selection by page number.
If it matters, I'm still developing in BIRT 2.3.1.
|
|
|
|
|
|
|
|
Re: Create Report with a Title Page [message #654234 is a reply to message #652998] |
Mon, 14 February 2011 12:17  |
Eclipse User |
|
|
|
UPDATE to the UPDATE - The solution I explained above only works when there are hard page breaks (ie, an element has the "break before" or "break after" option set). When the report content is long enough to cause a "soft page break" at the end of page 1, the footer on the second page comes out exactly the same as the page 1 footer.
I went back to using Jason's suggestion, using two different master pages, with two elaborations. First, my report has both group header lines and occasional detail footer lines, with different font sizes and therefore, line heights. Additionally, the detail footers sometimes word-wrap onto multiple lines. So, instead of counting the number lines, I actually had to estimate 'line' heights.
The second elaboration is my report has several report elements following the main detail table, and then 2 additional sections on separate pages with their own detail. For the trailing elements in the first section, I added the total height of the detail section into the report. Then I created an OnCreate script for each element, something like:
if ( totalDetailHeight >= 38 ) { this.getStyle().masterPage = "SecondMasterPage"; }
Finally, the 2 additional report sections were hard-assigned to the "SecondMasterPage", under the Page Break properties section.
|
|
|
Powered by
FUDForum. Page generated in 0.05628 seconds