Examples of JRPdfExporter


Examples of net.sf.jasperreports.engine.export.JRPdfExporter

          exporterODT.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
          exporterODT.exportReport();
          break;
        case PDF:
          logger.debug(bundle.getString("exporting-report", "pdf"));
          JRPdfExporter exporterPDF = new JRPdfExporter();
          exporterPDF.setParameter(JRPdfExporterParameter.JASPER_PRINT, print);
          exporterPDF.setParameter(JRPdfExporterParameter.OUTPUT_STREAM, outputStream);
          exporterPDF.setParameter(JRPdfExporterParameter.IS_CREATING_BATCH_MODE_BOOKMARKS, Boolean.TRUE);
          exporterPDF.setParameter(JRPdfExporterParameter.IGNORE_PAGE_MARGINS, Boolean.TRUE);
          exporterPDF.exportReport();
          break;
        case TXT:
          logger.debug(bundle.getString("exporting-report", "txt"));
          JRTextExporter exporterTXT = new JRTextExporter();
          exporterTXT.setParameter(JRTextExporterParameter.JASPER_PRINT, print);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.