ייצוא JasperReport ל-SVG
Contents
[
Hide
]Aspose.CAD עבור JasperReports מספקת מחלקה בשם ASSvgExporter לייצוא JasperReport ל-SVG.
קטע הקוד הבא מדגים כיצד לייצא את JasperReport ל-SVG.
Java
// קוד לייצוא JasperReport ל-SVG
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();