2002 JI Open Discussion Posted August 18, 2006 Share Posted August 18, 2006 By: Tony Piazza - tonypiazza Problems generating large reports 2003-04-03 08:16 I am having problems generating very large reports using JasperReports. The code I am using to generate the reports is as follows: JasperCompileManager jcm = new JasperCompileManager(); JasperFillManager jfm = new JasperFillManager(); JasperPrintManager jpm = new JasperPrintManager(); JRResultSetDataSource dataSource = new JRResultSetDataSource( rs ); JasperReport jr = jcm.compileReport( designPath ); JasperPrint jp = jfm.fillReport( jr, parms, dataSource ); jpm.printReportToPdfFile( jp, outputPath ); The problem seems to be that too much memory is being consumed when generating large reports. Can someone suggest an alternate approach that would not require so much memory? Any help would be greatly appreciated. Thanks, Tony Piazza By: Tony Zahn - tzahn RE: Problems generating large reports 2003-04-03 10:54 Have you tried precompiling the report? I'm pretty new to this, but I'd imagine that re-compiling the report every time you run it has to add to the system usage. By: Tony Piazza - tonypiazza RE: Problems generating large reports 2003-04-03 14:25 Part of the challenge with this report is that the layout changes dynamically based on user criteria. That part works fine. The problem is the call to printReportToPdfFile() consumes too much memory. I am wondering if I should use another method to fill the report. There are several fillReportToFile() methods. Maybe I should be using one of these... Any input from someone who has used these methods would be appreciated. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now