Hi, I believe you should look at JRFileVirtualizer Class. This will allow Jasper to load data into memory in chunks(similar to virtual memory concept of OS), thus avoiding the Java OutOfMemoryError. Yes, you can print a jasper report without displaying it. Following is a sample code snippet which should be of some help to you. //The File Virtualizer location should be configurable. JRFileVirtualizer virtualizer = new JRFileVirtualizer(2, "tempLocation"); parameters.put(JRParameter.REPORT_VIRTUALIZER, virtualizer); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, dataSource); JasperPrintManager.printPage(jasperPrint, 0, false); I would also suggest you to look for writing your own custom data source class and using it. Regards, Pushkar On Sep 11, 2006, at 12:23 PM, yves pielusenet wrote:
|
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions