ส่งออก 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();