Jump to content
JasperReports Library 7.0 is now available ×

Print Job Listener - SOS


Recommended Posts

By: meg - thanhhuong

Print Job Listener - SOS

2006-03-02 00:41

I'm using jasperreport 1.2 and trying to monitor status of print job. The reports are exported and printed from Applet viewer.

 

I'm modify net.sf.jasperreports.engine.JRPrinterAWT. Let it extends PrintJobAdapter to monitor 6 events:

1) printDataTransferCompleted(PrintJobEvent e)

2) printJobCanceled(PrintJobEvent e)

3) printJobCompleted(PrintJobEvent e)

4) printJobFailed(PrintJobEvent e)

5) printJobNoMoreEvents(PrintJobEvent e)

6) printJobRequiresAttention(PrintJobEvent e)

 

But after data is transferred to printer, i can only catch the event printJobNoMoreEvents although the print job is completed or failed, or anything else. And it's always like that! X-(

 

In the Java Guide, they mentionned about the limitation of printing system. But i don't know where the problem comes from. Is it caused of limitation of Printing System or of Applet limitation?

 

If the message is not clear or you need take a look at my code, please feel free to ask me.

 

Can anyone comment of this issue and offer a solution or a workaround? Please help me.

 

Best regards.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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