Xuất JasperReport thành SVG
Contents
[
Hide
]Aspose.CAD cho JasperReports cung cấp một lớp có tên là ASSvgExporter để xuất JasperReport thành SVG.
Đoạn mã sau đây minh họa cách xuất JasperReport thành 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();