Jump to content
Changes to the Jaspersoft community edition download ×

How to use jasper report fill listener to listen for every record/row insert?

Go to solution Solved by swood_1,

Recommended Posts

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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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