Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to figure out if the report has been printed  RSS feed

as chhipa
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
Currently I am using JasperReport for printing. I want to show message to the user when the reoprt has been printed. At the moment what is hapening that as soon as the program submit the report to printer it shows the message that report has been printed even though it is still being printed or in the printer queue.
I want to show this message only after the work has been done on the printer side.

Following is my code snippet

jasperReport = JasperCompileManager.compileReport("ClubFiles\\repschema.jrxml");

jasperPrint = JasperFillManager.fillReport(jasperReport, m, new JREmptyDataSource());

JasperPrintManager jasperPrintManager = new JasperPrintManager();

System.out.println("report printed");
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!