Not able to set PDF in LANDSCAPE mode by default.

0

I am working on Jasper report which is required to be print in landscape orientation by default. This report I am generating in pdf, word and excel format. jrxml already setting properties for landscape, pageWidth="842" pageHeight="595" orientation="Landscape" and with this I am able to print by default in landscape for word and excel but not able to print pdf as landscape by default. I have tried using JasperDesign to set orientation landscape but still all pdf viewer are opening print as portrait.

JasperDesign  design = JRXmlLoader.load(jasperTemplate);
            design.setOrientation(OrientationEnum.LANDSCAPE);
            JasperReport report = JasperCompileManager.compileReport(design);

 

ashinde_1's picture
Joined: Nov 18 2018 - 10:40pm
Last seen: 1 year 1 day ago

0 Answers:

No answers yet
Feedback