.jrprint Dosyalarını XLS Biçimlerine Dışa Aktarma

Contents
[ ]

Aşağıdaki kod parçacığı, jasperPrint nesnesinin bir dosya yoluna, örneğin destFile’a nasıl aktarılacağını gösterir.

Java

 import com.aspose.cells.jasperreports. ACXlsExporter;

.................

ACXlsExporter exporter = new ACXlsExporter ();

exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());

exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);

exporter.setParameter(ACXlsExporterParameter.IS_USE_EXCEL_CHART, Boolean.FALSE);

exporter.exportReport();