تصدير JasperReport إلى SVG

Contents
[ ]

يوضح المقتطف التالي من الشيفرة كيفية تصدير 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();