Hi, First, it is always better not to compile a file in the
application. It is prudent to use jasper file. In that case u just needs
to use JRLoader.loadObject (“jasper file”). One more thing is one need to use custom datasource class to
get the result set at one shot. Reason is result set doesn’t get all the data at one
shot. It comes in chunks and so the print object too builds incrementally. At the last u needs to flush and close all the streams. outputfile.flush () outputfile.close () Hope this’ll help. Regards, Asit Patadia. -----Original Message----- Hi , In my project i have a requiremt in
generating report in Excel format. But when i am integrating my .jrxml files with my
program, its throwing me out of memory exception. For small data the reports
are generating properly. But for large datas its throwing me exception. If
anybody can help me regarding this, then it will be a great help. I am also
sending the code. JasperDesign jasperDesign =
JasperManager.loadXmlDesign(strPath+"report\\newmember\\newmember_landscape.jrxml"); Regards Girija Find out what India is talking about on - Yahoo!
Answers India
|
------------------------------------------------------------------------- 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