ส่งออก JasperReport เป็น PSD
Contents
[
Hide
]Aspose.CAD สำหรับ JasperReports มีคลาสชื่อว่า ASPsdExporter สำหรับการส่งออก JasperReport เป็น PSD
โค้ดตัวอย่างต่อไปนี้แสดงวิธีการส่งออก JasperReport เป็น PSD
Java
ASPsdExporter psdExporter = new ASPsdExporter();
ASPsdExportConfigurationImpl psdExportConfiguration = new ASPsdExportConfigurationImpl();
psdExportConfiguration.setColorMode(ColorModesEnum.Rgb);
psdExportConfiguration.setPsdVersion(PsdVersionEnum.Psd);
psdExportConfiguration.setCompressionMethod(CompressionMethodEnum.Raw);
psdExporter.setConfiguration(psdExportConfiguration);
exporterInput = new ASExportInputImpl(jasperPrint);
psdExporter.setExporterInput(exporterInput);
exporterOutput = new ASExporterOutputImpl("shapesExample.psd");
psdExporter.setExporterOutput(exporterOutput);
psdExporter.exportReport();