Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Master Page footer height depending on report parameter
Master Page footer height depending on report parameter [message #1777855] Tue, 05 December 2017 10:59 Go to next message
Steven Schwarz is currently offline Steven SchwarzFriend
Messages: 1
Registered: December 2017
Junior Member
Hi there :)

I try to change the height of the footer in my master page depending on a boolean report parameter.
I've added a script in "beforeFactory", but it doesn't seem to work.

if(params["hideCampaign"].value){
	reportContext.getDesignHandle().findMasterPage("myPage").setProperty("Footer height","20mm");
} else {
	reportContext.getDesignHandle().findMasterPage("myPage").setProperty("Footer height","40mm");
}


I think the property "Footer height" does not exist. Any Idea how to get this to work?
Re: Master Page footer height depending on report parameter [message #1817741 is a reply to message #1777855] Thu, 28 November 2019 11:44 Go to previous message
Raphaël Renneau is currently offline Raphaël RenneauFriend
Messages: 1
Registered: November 2019
Junior Member
Hi,

If it can help another user

if(params["hideCampaign"].value){
	reportContext.getDesignHandle().findMasterPage("myPage").setProperty("footerHeight","20mm");
} else {
	reportContext.getDesignHandle().findMasterPage("myPage").setProperty("footerHeight","40mm");
}
Previous Topic:Unable to display Hindi characters in a BIRT PDF report
Next Topic:Birt viewer axis.jar
Goto Forum:
  


Current Time: Thu Apr 25 23:12:29 GMT 2024

Powered by FUDForum. Page generated in 0.03975 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top