prancius Posted June 2, 2010 Share Posted June 2, 2010 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 codeDefaultTableModel 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 More sharing options...
prancius Posted June 7, 2010 Author Share Posted June 7, 2010 No ideas? Is it some problem ar this solution? Regards,Pranas Link to comment Share on other sites More sharing options...
lucianc Posted June 15, 2010 Share Posted June 15, 2010 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 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