Jump to content
Changes to the Jaspersoft community edition download ×

Problems printing landscape report


2005 IR Help

Recommended Posts

By: Daniel Ruoso - ruoso

Problems printing landscape report

2004-05-10 10:50

Hi,

 

I had created a landscape report. When I try to print it in windows nt, it always print portrait "eating" half of the report. No matter I configure to print landscape or not.

 

Any ideas?

 

 

 

 

 

By: Daniel Ruoso - ruoso

RE: Problems printing landscape report

2004-05-10 11:17

This problem exists in linux also... not just on windows.

 

 

 

 

By: Mark Engstrom - me2kme

RE: Problems printing landscape report

2004-05-10 23:56

 

Hi,

 

Does the start of your report look something like

 

<jasperReport

name="DKW_LON_ca_cpn_detail_jasper"

columnCount="1"

printOrder="Vertical"

pageWidth="842"

pageHeight="595"

orientation="Landscape"

columnWidth="802"

columnSpacing="0"

leftMargin="20"

rightMargin="20"

topMargin="30"

bottomMargin="30"

isTitleNewPage="false"

isSummaryNewPage="false">

 

Also, if you have some java code that generates the report. Have a look at the JasperPrint object being created when the report is compiled. What is the value returned of the getOrientation() method. Is it always the same ?

 

 

 

 

By: Darran Smith - darrans

RE: Problems printing landscape report

2004-05-11 00:27

You need to set the pageWidth and pageHeight as well as setting the orientation.

 

i.e. if you want landscape, set the orientation to "Landscape", and switch the values in pageWidth and pageHeight.

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