Skip to content

Commit

Permalink
Disabling xls export.
Browse files Browse the repository at this point in the history
  • Loading branch information
renemadsen committed Mar 24, 2024
1 parent 56c3101 commit 3b429ac
Show file tree
Hide file tree
Showing 7 changed files with 196 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

131 changes: 131 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public enum ExportType {

PDF, XLS, XLSX, DOC, DOCX, RTF, ODT, PPT, PPTX;
PDF, XLSX, DOC, DOCX, RTF, ODT, PPT, PPTX;

public static ExportType byName(String name) {
for (ExportType type : ExportType.values()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private static class ReportExporter<T extends Exporter<? extends ExporterInput,
new SimpleEntry<>(ExportType.ODT, new ReportExporter<>(JROdtExporter.class, SimpleOdtReportConfiguration::new, SimpleOutputStreamExporterOutput.class)),
new SimpleEntry<>(ExportType.RTF, new ReportExporter<>(JRRtfExporter.class, SimpleRtfReportConfiguration::new, SimpleWriterExporterOutput.class)),
new SimpleEntry<>(ExportType.XLSX, new ReportExporter<>(JRXlsxExporter.class, JasperReportConvertor::createXlsxReportConfig, SimpleOutputStreamExporterOutput.class)),
new SimpleEntry<>(ExportType.XLS, new ReportExporter<>(JRXlsExporter.class, JasperReportConvertor::createXlsReportConfig, SimpleOutputStreamExporterOutput.class)),
//new SimpleEntry<>(ExportType.XLS, new ReportExporter<>(JRXlsExporter.class, JasperReportConvertor::createXlsReportConfig, SimpleOutputStreamExporterOutput.class)),
new SimpleEntry<>(ExportType.PPT, new ReportExporter<>(JRPptxExporter.class, SimplePptxReportConfiguration::new, SimpleOutputStreamExporterOutput.class)),
new SimpleEntry<>(ExportType.PPTX, new ReportExporter<>(JRPptxExporter.class, SimplePptxReportConfiguration::new, SimpleOutputStreamExporterOutput.class)))
.collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue, (l, r) -> {
Expand Down

0 comments on commit 3b429ac

Please sign in to comment.