Экспорт JasperReport в SVG
Contents
[
Hide
]Aspose.CAD для JasperReports предоставляет класс под названием ASSvgExporter для экспорта JasperReport в SVG.
Следующий фрагмент кода демонстрирует, как экспортировать JasperReport в 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();