Jump to content
Changes to the Jaspersoft community edition download ×

Not able to set PDF in LANDSCAPE mode by default.


Recommended Posts

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);
            JasperReport report = JasperCompileManager.compileReport(design);


Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...