Експорт на 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();