Jump to content

Need some progresss bar


prancius

Recommended Posts

Hello,

 

I have working with java using jasperreports.

Now i have problem when report have a lot of pages. I need some solution to show user that filling progress is working.

Maybe there is some events or variable which holds filled pages or maybe there is some configuration to show allready generated pages while other is still generating?

 

Any idea is welcome.

 

My peace of code

DefaultTableModel model = new DefaultTableModel(data,this.getHeaders());
           
            JasperPrint jasperPrint = null;
            JRTableModelDataSource ds=new JRTableModelDataSource(model);
           
             try
             {
                   jasperPrint = JasperFillManager.fillReport(reportFileName,params,ds);
             }
               
             catch (JRException e)
             {
                PrintLog.log(PrintLog.ERROR,"TablePanelSimple;"+e.toString());
             }
           
             return jasperPrint;

 

Regards,

Pranas

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 2 weeks later...

You can use a scriptlet to be notified when a new page is generated.

There's no mechanism to diplay generated pages before the report completes.  Note that in the general case a page is not final until the end of the fill process, e.g. you can have a Page x of n text on the page footer, and the total number of pages is not known before the report completes.

Regards,

Lucian

Link to comment
Share on other sites

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