Exportování JasperReportu do SVG
Contents
[
Hide
]Aspose.CAD pro JasperReports poskytuje třídu nazvanou ASSvgExporter pro exportování JasperReportu do SVG.
Následující ukázka kódu demonstruje, jak exportovat JasperReport do SVG.
Java
ASSvgExporter svgExporter = new ASSvgExporter();
ASSvgExportConfigurationImpl svgExportConfiguration = new ASSvgExportConfigurationImpl();
svgExportConfiguration.setEmbedFonts(true);
svgExportConfiguration.setCompress(true);
svgExporter.setConfiguration(svgExportConfiguration);
exporterInput = new ASExportInputImpl(jasperPrint);
svgExporter.setExporterInput(exporterInput);
exporterOutput = new ASExporterOutputImpl("shapesExample.svg");
svgExporter.setExporterOutput(exporterOutput);
svgExporter.exportReport();