Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
as chhipa
Greenhorn
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();
jasperPrintManager.printReport(jasperPrint,false);

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