if (pageWidth != null && pageWidth.length() > 0) jasperPrint.setPageWidth(Integer.parseInt(pageWidth));
jasperPrint.setPageWidth(pageWidth); jasperPrint.setPageHeight(pageHeight); jasperPrint.setOrientation(orientation);
jasperPrint.setPageWidth(report.getPageWidth()); jasperPrint.setPageHeight(report.getPageHeight());