Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Printer default setting to Landscape
Raj_t
Hi,
I am generating my report in Birt report viewer. I want to print the report in landscape format. I changed the orientation to Landscape in masterpage and added the below code in beforefactory method.
var renderO = reportContext.getOutputFormat();
dh = reportContext.getReportRunnable().designHandle.getDesignHandle();
mp = dh.getMasterPages().get(0);
mp.orientation = "landscape";
I am able to export the report in landscape format to ppt, pdf etc. Here my problem is when I click on print Icon from tool bar, it is printing the page in "Portrait" page format. Please let me know how can I default my page setting to "Landscape" while printing.
Thanks in advance for any help.
Thanks,
Raj.
Find more posts tagged with
Comments
mwilliams
Hi Raj,
What version of BIRT are you using?
Raj_t
Hi Michael,
I am using 2.5.
Thanks