Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Resize page footer dynamically (based on current page number)
Resize page footer dynamically (based on current page number) [message #938374] Tue, 09 October 2012 16:31 Go to next message
Aleksey   is currently offline Aleksey
Messages: 42
Registered: April 2012
Member
Hello,
We have a complex materials management report where we need to implement the following business logic:
1) restart page N of M for each group
2) for page 1 within each group display page footer with 10 lines (roughly the height is about 2 in)
3) for next subsequent pages within the same group display different page footer with 1 line only (roughly 0.25 in)

1) is not a problem - we can do it using persistent global or page variables.

2) and 3) is a problem...

we have a grid with 2 lines in the page footer. the first line of the grid contains another grid that has 10 lines to display footer content for the first page.

the second line of the grid contains just 1 line itself to display footer content when it is not the first page of the group. Putting the following in onRender() will hide 1 or 2 line of the grid based on the current page number that is stored in persistent global variable: this.getStyle().setVisibleFormat("all");
But it does not change the footer height: it still takes about 2 in that we need to reserve to display the first footer without truncation.

Is there any way to adjust the footer height on fly? In Actuate ErdPro there was a relatively easy way to insert the whole header or footer dynamically....

This was already discussed in here - _http://www.eclipse.org/forums/index.php/m/715020/?srch=header+height+dynamically#msg_715020

but it did not address the issue of extra vertical space....

"Lets say the first grid takes 10 inches and second grid 5 inches, the total space occupied in the output is 15 inches. But on page 1 I need the header to occupy only 10 inches and on the second page 5 inches. Is there anyway we can change the header height dynamically ?"

Thanks
Aleksey
Re: Resize page footer dynamically (based on current page number) [message #939827 is a reply to message #938374] Thu, 11 October 2012 00:36 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Aleksey,

I do not think this is currently supported. If you want different footer/header heights you have to use different master pages. This will most likely not work for you.

Jason
Re: Resize page footer dynamically (based on current page number) [message #940247 is a reply to message #939827] Thu, 11 October 2012 09:05 Go to previous messageGo to next message
Aleksey   is currently offline Aleksey
Messages: 42
Registered: April 2012
Member
Jason,
Is there a way to switch MasterPage dynamically during report execution based on a condition?

Thanks,
Aleksey
Re: Resize page footer dynamically (based on current page number) [message #941678 is a reply to message #940247] Fri, 12 October 2012 15:16 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

You can set which master page is used on bound items, but I do not think you can change it dynamically.

Jason
Re: Resize page footer dynamically (based on current page number) [message #941681 is a reply to message #941678] Fri, 12 October 2012 15:16 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Meaning you can change it in script but after it is prepared I believe it is to late.

Jason
Previous Topic:New User :)
Next Topic:MultiColumn Layout in BIRT
Goto Forum:
  


Current Time: Thu Aug 21 20:11:09 EDT 2014

Powered by FUDForum. Page generated in 0.05006 seconds