Jump to content
We've recently updated our Privacy Statement, available here ×

to set print orientation landscape?


honeyani

Recommended Posts

Hi

 

In iReport report properties Orientation value set in drop down in 'Landscape'.

In jrxml

jasper report header is like this :

 

<jasperReport
   name="My_report_Name"
   columnCount="1"
   printOrder="Vertical"
   orientation="Landscape"
   pageWidth="1472"
   pageHeight="1471"
   columnWidth="1436"
   columnSpacing="0"
   leftMargin="8"
   rightMargin="28"
   topMargin="28"
   bottomMargin="28"
   whenNoDataType="NoPages"
   scriptletClass="AccountHistory_GeneralScriptlet"
   isTitleNewPage="false"
   isSummaryNewPage="false">

which shows orientation landscpae as well in jsp code i've updated as below for japser print properties..

jasperPrint.setOrientation(JasperReport.ORIENTATION_LANDSCAPE);

Still on the generated PDF report ,print page set up option shows 'portrait' option highlighted.

Anyother way to set landscape option during print ?how to resolve this issue.

ITs an urgent issue,can anyone help out to solve this ASAP.

 

waiting for ur reply..

Regds,

Ani

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