wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes Jasper report - Orientation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Jasper report - Orientation problem" Watch "Jasper report - Orientation problem" New topic
Author

Jasper report - Orientation problem

garfild Baram
Ranch Hand

Joined: Mar 24, 2003
Posts: 60
Hi,
I have a report with landscape orientation.
Using the following code prints the report as "Portraite" orintation and not "Landscape" as I want.
Map parameters = reportParameters.getParametersMap();

ByteArrayInputStream in = new ByteArrayInputStream(compiledOutput.toByteArray());
JasperPrint jasperPrint = JasperFillManager.fillReport(in, parameters, Database.instance().getConnection());

JRAbstractExporter printExporter = new JRPrintServiceExporter();
printExporter.setParameter(JRExporterParameter.JASPER_PRINT,jasperPrint);
printExporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, new Boolean(false));
printExporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, new Boolean(false));
printExporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, printAttributeSet);
printExporter.exportReport();

How do change a reports orientation in the code?
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jasper report - Orientation problem
 
Similar Threads
Jasper Report Line Graph
Jasper report - Change Page Orientation
How Do I Find a Memory Leak?
JasperFillManager - class not found problem
No field names in jsper report page