to set print orientation landscape?

0

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

honeyani's picture
Joined: Sep 10 2008 - 3:07am
Last seen: 6 years 1 month ago

Answers:

No answers yet
Feedback