ส่งออก 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();