|Resize page footer dynamically (based on current page number) [message #938374]
||Tue, 09 October 2012 16:31
Registered: April 2012
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 ?"
Powered by FUDForum
. Page generated in 0.05006 seconds