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
Change Master Page width on Report creation
Migrateduser
Hi @ all,
I?ve got a Problem in BIRT (v.3.7.2). I need to scale the Master Page of my Report by the width of a Crosstab dynamically by designing the Report. I?ve choose the option ?can shrink? so the Crosstab automatically shrink to the maximum width in the moment the Report is created. Know I need to adapt the width of the Master Page to the width of the Crosstab.
Ill tried the following Script:
beforeFactory:
importPackage(Packages.org.eclipse.birt.report.model.api.elements);
importPackage(Packages.org.eclipse.birt.report.model.api);
reportContext.getReportRunnable().designHandle.getDesignHandle().findMasterPage( "NewSimpleMasterPage").setProperty("width","100 in" );
And it works fine. What can I do to switch the Master Page width dynamically to the width of the Crosstab? Is the beforeFactory the right place for the Script? I am thankful for every kind of help.
Find more posts tagged with
Comments
There are no comments yet