Експорт на JasperReport в TIFF
Contents
[
Hide
]Aspose.CAD за JasperReports предоставя клас на име ASTiffExporter за експортиране на JasperReport в TIFF.
Следващият кодов фрагмент демонстрира как да экспортирате JasperReport в TIFF.
Java
ASTiffExporter tiffExporter = new ASTiffExporter();
ASTiffExportConfigurationImpl tiffExportConfiguration = new ASTiffExportConfigurationImpl(TiffExpectedFormatEnum.TiffDeflateRgb);
tiffExportConfiguration.setArtist("Джон Смит");
tiffExportConfiguration.setDateTime("12.08.2020");
tiffExportConfiguration.setCompression(TiffCompressionsEnum.AdobeDeflate);
tiffExporter.setConfiguration(tiffExportConfiguration);
exporterInput = new ASExportInputImpl(jasperPrint);
tiffExporter.setExporterInput(exporterInput);
exporterOutput = new ASExporterOutputImpl("shapesExample.tiff");
tiffExporter.setExporterOutput(exporterOutput);
tiffExporter.exportReport();