Jump to content
We've recently updated our Privacy Statement, available here ×

aliabdullah.magna

Members
  • Posts

    1
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by aliabdullah.magna

  1. Hi everyone, I'm using Jasper with spring to export a set of separated reports to an excel file via a list of JasperPrint using the following code: public File getExcelFile() throws IOException, JRException{ File excel = new File(getReportTitle()+".xlsx"); JRXlsxExporter exporter = new JRXlsxExporter(); exporter.setExporterInput(SimpleExporterInput.getInstance(jasperPrintList)); // where jasperPrintList is a List<JasperPrint> of separated reports. exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(excel)); SimpleXlsxReportConfiguration reportConfig = new SimpleXlsxReportConfiguration(); reportConfig.setOnePagePerSheet(false); reportConfig.setWrapText(true); reportConfig.setAutoFitPageHeight(true); exporter.setConfiguration(reportConfig); exporter.exportReport(); return excel; }[/code]Above code generates excel file with one sheet per report. How can I set it to generate all reports to one sheet only, not sheet per report? Thanks in advance.
×
×
  • Create New...