Eksportuj JasperReport do SVG

Contents
[ ]

Poniższy fragment kodu demonstruje, jak eksportować JasperReport do SVG.

Java

/// Komentarz: Inicjalizacja eksportera SVG
ASSvgExporter svgExporter = new ASSvgExporter();
ASSvgExportConfigurationImpl svgExportConfiguration = new ASSvgExportConfigurationImpl();
svgExportConfiguration.setEmbedFonts(true); // Komentarz: Osadź czcionki
svgExportConfiguration.setCompress(true); // Komentarz: Kompresuj eksport

svgExporter.setConfiguration(svgExportConfiguration);

exporterInput = new ASExportInputImpl(jasperPrint);
svgExporter.setExporterInput(exporterInput);

exporterOutput = new ASExporterOutputImpl("shapesExample.svg");
svgExporter.setExporterOutput(exporterOutput);

svgExporter.exportReport(); // Komentarz: Eksportuj raport