Jump to content

Can't get PDF to output in Landscape format to save my life


markorocko

Recommended Posts

Folks,

I'm using iReport Designer 4.5.1 and its accompanying jar.
So my jxrml is nicely marked up and set to orientation='landscape'

<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Day View" pageWidth="792" pageHeight="612" orientation="Landscape" whenNoDataType="AllSectionsNoDetail" columnWidth="708" leftMargin="42" rightMargin="42" topMargin="20" bottomMargin="20">
    <property name="ireport.zoom" value="1.5"/>

However, when the XML is filled and delivered to Acrobat it shows the data represented properly but appears in acrobat portrait!

So, I tried one additional thing and also set orientation on the fill and that didn't work either, document still appears in acrobat portrait.

           JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, hm, connection);
            jasperPrint.setOrientation(OrientationEnum.LANDSCAPE);

Please advise how to make this puppy come out in landscape orientation.  What's going wrong?
Thanks!

 



Post Edited by markorocko at 04/12/2012 22:24
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

More information......  so when I use the iReport Designer 4.5.1 and preview rendering the document and print, it comes out properly landscape.

However, when rendered in java and streamed to Acrobat the default is portrait.
 

Does this product even work in Acrobat as landscape?  This would be a major bug if iReports can't even print automatically as landscape.

Please advise.

Link to comment
Share on other sites

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...