Xuất JasperReport ra PSD
Contents
[
Hide
]Aspose.CAD cho JasperReports cung cấp một lớp có tên là ASPsdExporter để xuất JasperReport ra PSD.
Mẫu mã sau đây trình bày cách xuất JasperReport ra 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();