Dynamic Jasper crashes with huge data [closed]-Collection of common programming errors
(sorry about my english)
I’ve been using the DJ a very long time and I had this problem some time ago. I solved the problem saving the report content to a file instead of a byte array.
My method to export pdf report is like this:
private File exportReportPDF(JasperPrint jp, File file) throws JRException, FileNotFoundException {
JRExporter exporter = new JRPdfExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jp);
exporter.setParameter(JRExporterParameter.OUTPUT_FILE, file);
exporter.exportReport();
return file;
}
Of course, in this case you will have to pass the File and the Jasperprint to this method and work with the Returned file. Here we have reports that works with more then 500Mb
Cheers,