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

tailorbird.restless

Members
  • Posts

    2
  • 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 tailorbird.restless

  1. Version : jasperreports-3.7.6 The above link seems not using the JasperReports but the Apache POI.
  2. I was trying to write an excel sheet and then download the same using byteArray. I have almost 1L records and is getting the following error. Invalid row number (65536) outside allowable range (0..65535) try { List<byte[]> byteArray = new ArrayList(); for (ReportGen reportGen : reportGenOutputs) { JasperPrint jasperPrint = (JasperPrint)reportGen.getContent(); ByteArrayOutputStream outStr = new ByteArrayOutputStream(); JRXlsExporter XLSExp = new JRXlsExporter(); XLSExp.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); XLSExp.setParameter(JRExporterParameter.OUTPUT_STREAM, outStr); XLSExp.setParameter(JRXlsAbstractExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE); XLSExp.exportReport(); byteArray.add(outStr.toByteArray()); } return byteArray; } catch (Exception e) { // Exception goes here }[/code] Invalid row number (65536) outside allowable range (0..65535)Invalid row number (65536) outside allowable range (0..65535)
×
×
  • Create New...