edohernandez / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Return print success or not status from printer #246

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
My application normally will print out label after saving the transaction. 
However, sometimes the record successfully save to database but no label 
printout. There are no error message return. So i would like to know is there 
any function to get the print success or not return from printer?

What version of the product are you using? On what operating system?
1.8

Original issue reported on code.google.com by chanway...@gmail.com on 6 May 2015 at 8:14

GoogleCodeExporter commented 9 years ago
> is there any function to get the print success or not return from printer?

Generally, you can use:

   function qzDonePrinting() {
     if (qz.getException()) {
        alert("error! ");
     }
   }

However, this doesn't actually tell you if the print was successful, but rather 
if the print was accepted by the spooler subsystem.

To know if the item actually printed may require accessing the hardware on a 
lower level.  This is something we plan to offer better support for after QZ 
Tray has been released.

Original comment by tres.fin...@gmail.com on 6 May 2015 at 12:14