Exporteer JasperReport naar SVG
Contents
[
Hide
]Aspose.CAD voor JasperReports biedt een klasse genaamd ASSvgExporter voor het exporteren van JasperReport naar SVG.
De volgende codefragment laat zien hoe je de JasperReport naar SVG kunt exporteren.
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();