JasperReport'u JPEG2000'e Dışa Aktarma
Contents
[
Hide
]Aspose.CAD for JasperReports, JasperReport’u JPEG2000’e dışa aktarmak için ASJpeg2000Exporter adında bir sınıf sağlar.
Aşağıdaki kod örneği, JasperReport’u JPEG2000’e nasıl dışa aktaracağınızı göstermektedir.
Java
ASJpeg2000Exporter jpeg2000Exporter = new ASJpeg2000Exporter();
ASJpeg2000ExportConfigurationImpl jpeg2000ExportConfiguration = new ASJpeg2000ExportConfigurationImpl();
jpeg2000ExportConfiguration.setIrreversible(true);
jpeg2000ExportConfiguration.setCodec(Jpeg2000CodecEnum.J2K);
jpeg2000Exporter.setConfiguration(jpeg2000ExportConfiguration);
exporterInput = new ASExportInputImpl(jasperPrint);
jpeg2000Exporter.setExporterInput(exporterInput);
exporterOutput = new ASExporterOutputImpl("shapesExample.jp2");
jpeg2000Exporter.setExporterOutput(exporterOutput);
jpeg2000Exporter.exportReport();