gettingstartedwithjasperreports
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| gettingstartedwithjasperreports [2022/01/05 20:04] – [Generate a Spreadsheet from SimpleReport] wikiadmin | gettingstartedwithjasperreports [2022/01/05 20:09] (current) – [Generate a Spreadsheet from SimpleReport] wikiadmin | ||
|---|---|---|---|
| Line 372: | Line 372: | ||
| <code javascript> | <code javascript> | ||
| - | //Script to run SimpleReport.jasper | + | //Script to run SimpleReport.jasper |
| - | var Logger = Java.type(" | ||
| var HashMap = Java.type(" | var HashMap = Java.type(" | ||
| var FileInputStream = Java.type(" | var FileInputStream = Java.type(" | ||
| Line 381: | Line 380: | ||
| var JRCsvExporter = Java.type(" | var JRCsvExporter = Java.type(" | ||
| var SimpleCsvExporterConfiguration = Java.type(" | var SimpleCsvExporterConfiguration = Java.type(" | ||
| - | var SimpleOutputStreamExporterOutput | + | var SimpleWriterExporterOutput |
| var SimpleExporterInput = Java.type(" | var SimpleExporterInput = Java.type(" | ||
| Line 396: | Line 395: | ||
| csvExporter.setExporterOutput(new SimpleWriterExporterOutput(outputName)); | csvExporter.setExporterOutput(new SimpleWriterExporterOutput(outputName)); | ||
| csvConfiguration = new SimpleCsvExporterConfiguration(); | csvConfiguration = new SimpleCsvExporterConfiguration(); | ||
| - | csvConfiguration.setWriteBOM(Boolean.TRUE); | + | csvConfiguration.setWriteBOM(true); |
| csvConfiguration.setRecordDelimiter(" | csvConfiguration.setRecordDelimiter(" | ||
| csvExporter.setConfiguration(csvConfiguration); | csvExporter.setConfiguration(csvConfiguration); | ||
| Line 403: | Line 402: | ||
| } catch (e) { | } catch (e) { | ||
| print(" | print(" | ||
| - | print(e); | + | print(e); |
| + | |||
| + | } | ||
| + | |||
| + | |||
| </ | </ | ||
gettingstartedwithjasperreports.1641431056.txt.gz · Last modified: by wikiadmin
