Eksportuj JasperReport do SVG
Contents
[
Hide
]Aspose.CAD dla JasperReports udostępnia klasę o nazwie ASSvgExporter do eksportowania JasperReport do SVG.
Poniższy fragment kodu demonstruje, jak eksportować JasperReport do SVG.
Java
/// Komentarz: Inicjalizacja eksportera SVG
ASSvgExporter svgExporter = new ASSvgExporter();
ASSvgExportConfigurationImpl svgExportConfiguration = new ASSvgExportConfigurationImpl();
svgExportConfiguration.setEmbedFonts(true); // Komentarz: Osadź czcionki
svgExportConfiguration.setCompress(true); // Komentarz: Kompresuj eksport
svgExporter.setConfiguration(svgExportConfiguration);
exporterInput = new ASExportInputImpl(jasperPrint);
svgExporter.setExporterInput(exporterInput);
exporterOutput = new ASExporterOutputImpl("shapesExample.svg");
svgExporter.setExporterOutput(exporterOutput);
svgExporter.exportReport(); // Komentarz: Eksportuj raport