|
Re: Master Page or(page orientation) Based on the parameter [message #551473 is a reply to message #551454] |
Fri, 06 August 2010 14:23 |
|
JP,
You can always modify the master page settings in the beforeFactory
script like:
importPackage(Packages.org.eclipse.birt.report.model.api.ele ments);
importPackage(Packages.org.eclipse.birt.report.model.api);
//reportContext.getDesignHandle().findMasterPage("myMasterPage ").orientation
= "landscape";
reportContext.getDesignHandle().findMasterPage("myMasterPage ").orientation
= "portrait";
//reportContext.getDesignHandle().findMasterPage("myMasterPage ").pageType =
"us-legal";
reportContext.getDesignHandle().findMasterPage("myMasterPage ").setProperty("headerHeight",
"0.6in" );
reportContext.getDesignHandle().findMasterPage("myMasterPage ").setProperty("headerHeight",
"0.7in" );
Or in the before factory find your table and set its master page like:
rptDesignHandle = reportContext.getDesignHandle();
tbl = rptDesignHandle.findElement("mytable");
tbl.setProperty("masterPage","MasterPageTwo");
And these can be based on parameters as the beforeFactory event has
access to all the parameter values. ie params["MyParameter"].value
Jason
On 8/6/2010 10:03 AM, JP wrote:
> Hi Experts,
>
> I am experiencing an issue with page orientation , If the Parameter is
> A4 then i have to chose A4 Master page or it has to took default Master
> page. Please assist me on this.
>
> Thanks,
> JP
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03733 seconds