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

Problems generating large reports


Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...