Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Jasper report - Orientation problem" Watch "Jasper report - Orientation problem" New topic

Jasper report - Orientation problem

garfild Baram
Ranch Hand

Joined: Mar 24, 2003
Posts: 60
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(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, new Boolean(false));
printExporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, new Boolean(false));
printExporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, printAttributeSet);

How do change a reports orientation in the code?
I agree. Here's the link:
subject: Jasper report - Orientation problem
jQuery in Action, 3rd edition