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
Developing Analytics Applications
Printer Default Settings
Migrateduser
hello all,
enclosed below is my requirement.
it would be greatful if someone helps out .
requirement:
whenever a user clicks on the print option on the report , the default settings should point to Landscape and fit to page size.
i've tried out writing script in beforefactory method but was unable to;
and below is the code:
var renderO = reportContext.getRenderOption().getOutputFormat();
// change layout
if (renderO == "pdf"){
reportContext.getDesignHandle().getMasterPages().get(0).setProperty("orientation","landscape");
}
else if (renderO == "html")
reportContext.getDesignHandle().getMasterPages().get(0).setProperty("orientation","potrait");
Thanks,
Sailaja.K
Find more posts tagged with
Comments
There are no comments yet