Jump to content
JasperReports Library 7.0 is now available ×

Create a progress bar


fabboy

Recommended Posts

Hi,

 

I use Jasper Report in my web application. Some reports take a lot of time for running (Final report can contains up to 12 000 page by report.)

 

I want to create a progress bar [exemple : 12 pages generated / 50 ] in my webapplication to know how many pages are process during this operation :

 

Code:
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, rapParameters, connection);

 

Is it possible ?

 

For information, jasper report build approximatively one page by line of the resultset (of the main SQL request).

 

Sorry for my english speaking (I'am french)

 

Thank for your help...

Link to comment
Share on other sites

  • 4 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Hi fabboy, I thing a progress bar is a very good way to visual the loading and filling status. I'm having the same problem with big xml data sources ( >20MB ). For example:[color=#0000FF]FileInputStream fileInputStram = new FileInputStream(_xmlFile);InputStream inStram = new GZIPInputStream(fileInputStram);JRXmlDataSource jrxmlds = new JRXmlDataSource(inStram, "report.jasper"); // takes > 2 minJasperPrint jpr = JasperFillManager.fillReport(jasperInputStream, parameters, jrxmlds);JasperViewer jv = new JasperViewer(jpr,false);jv.show();[/color]Is there any possibility to visual the actual status and the left time to show the jasperViewer?with best regardsDaniel

 

Post edited by: buedenbenderd, at: 2007/08/08 07:28

Link to comment
Share on other sites

  • 6 years later...

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...