Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Changing the footerHeight property on runtime
Migrateduser
Hi there,<br />
<br />
We would like to display the page footer on the last page only.<br />
<br />
We have already applied the solution proposed on this forum which is as follows:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
if (BirtComp.lessThan(pageNumber, totalPage))
{
this.getStyle().display = "NONE";
}
</pre>
<br />
This script hides the contents of the footer on any page but the last one, which is great.<br />
However we would also like to reduce the size of the footer to zero for those pages where the footer contents is not visible.<br />
<br />
One of the possible solutions we came up with was something like:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
if (BirtComp.lessThan(pageNumber, totalPage))
{
this.getStyle().display = "NONE";
reportContext.getDesignHandle().getMasterPages().get(0).setProperty("footerHeight", 0);
}
</pre>
i.e. getting the reference to the master page and then setting the property "footerHeight" to zero.<br />
<br />
Unfortunately this did not work.<br />
<br />
So any suggestion on how to implement this feature will be very welcome.<br />
We are still using BIRT 2.6.<br />
<br />
Many thanks
Find more posts tagged with
Comments
There are no comments yet