exporter.setConfiguration(exporterConfiguration); exporter.setConfiguration(reportConfiguration);
exporter = new JRPdfExporter(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); exporter.setConfiguration(new SimplePdfExporterConfiguration()); } else if (ReportOutputType.html == outputType) { exporter = new HtmlExporter(); exporter.setExporterOutput(new SimpleHtmlExporterOutput(outputStream)); exporter.setConfiguration(new SimpleHtmlExporterConfiguration()); } else if (ReportOutputType.csv == outputType){ exporter = new JRCsvExporter(); SimpleCsvExporterConfiguration config = new SimpleCsvExporterConfiguration(); config.setFieldDelimiter(CSV_DELIMETER); exporter.setConfiguration(config); } else if (ReportOutputType.doc == outputType ){ exporter = new JRRtfExporter(); exporter.setExporterOutput(new SimpleWriterExporterOutput(outputStream)); exporter.setConfiguration(new SimpleRtfExporterConfiguration()); } else if (ReportOutputType.docx == outputType){ exporter = new JRDocxExporter(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); exporter.setConfiguration(new SimpleDocxExporterConfiguration()); } else if (ReportOutputType.xls == outputType){ exporter = new JRXlsExporter(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); exporter.setConfiguration(new SimpleXlsExporterConfiguration()); } else if (ReportOutputType.xlsx == outputType){ exporter = new JRXlsxExporter(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); exporter.setConfiguration(new SimpleXlsxExporterConfiguration());
exporter = new JRPdfExporter(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); exporter.setConfiguration(new SimplePdfExporterConfiguration()); } else if (ReportOutputType.html == outputType) { exporter = new HtmlExporter(); exporter.setExporterOutput(new SimpleHtmlExporterOutput(outputStream)); exporter.setConfiguration(new SimpleHtmlExporterConfiguration()); } else if (ReportOutputType.csv == outputType){ exporter = new JRCsvExporter(); SimpleCsvExporterConfiguration config = new SimpleCsvExporterConfiguration(); config.setFieldDelimiter(CSV_DELIMETER); exporter.setConfiguration(config); } else if (ReportOutputType.doc == outputType ){ exporter = new JRRtfExporter(); exporter.setExporterOutput(new SimpleWriterExporterOutput(outputStream)); exporter.setConfiguration(new SimpleRtfExporterConfiguration()); } else if (ReportOutputType.docx == outputType){ exporter = new JRDocxExporter(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); exporter.setConfiguration(new SimpleDocxExporterConfiguration()); } else if (ReportOutputType.xls == outputType){ exporter = new JRXlsExporter(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); exporter.setConfiguration(new SimpleXlsExporterConfiguration()); } else if (ReportOutputType.xlsx == outputType){ exporter = new JRXlsxExporter(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); exporter.setConfiguration(new SimpleXlsxExporterConfiguration());