yuvak250198 Posted September 19, 2019 Share Posted September 19, 2019 The below code can be used to create listener for every page update . But I am writing every records in my table to report. I need to listen for every record... Is there is any possible way to do that...AsynchronousFillHandle handle = AsynchronousFillHandle.createHandle(jasperReport, params, dataSource); handle.addFillListener(new FillListener() {@Overridepublic void pageUpdated(JasperPrint jasperPrint, int pageIndex) { log.info("pageUpdated " + pageIndex);}@Overridepublic void pageGenerated(JasperPrint jasperPrint, int pageIndex) { log.info("pageGenerated " + pageIndex);}}); Link to comment Share on other sites More sharing options...
Solution swood_1 Posted September 19, 2019 Solution Share Posted September 19, 2019 Look at using a Scriptlet.There are beforeDetailEval and afterDetailEval methods. Link to comment Share on other sites More sharing options...
yuvak250198 Posted September 19, 2019 Author Share Posted September 19, 2019 Is there is any way that we can acheive same functionality of beforedetaileval and afterdetaileval in exporting time?? Link to comment Share on other sites More sharing options...
swood_1 Posted September 19, 2019 Share Posted September 19, 2019 No. The JasperPrint object does not have the concept of detail bands etc - it is focused on page content. Link to comment Share on other sites More sharing options...
krshivraj8.sr Posted September 20, 2019 Share Posted September 20, 2019 Hi,if anything similar to scriptlet is available. 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