Open tresf opened 2 years ago
Some additional information:
For Information, I didn’t get BOCA printers errors status , when there were no more paper in BOCA printer.
I use Bi-directional spool driver mode, and according to your code and BOCA reference, error BOCA printer status should be sent. But I ‘ve got only
OK
Status from BOCA printer when there was no more paper.This was my test : initially the printer was fed with paper :
- The web page open connection with QZ-Tray and connect to BOCA printer
- Web page sended a first successful print job
- Web page sended a second fail print job (because of paper out) Below all the status I got from QZ Tray when sending print jobs to BOCA with no more paper: Maybe the reason is : because error status BOCA is sent to
PRINTINFO_6
structure and notPRINTERINFO_2
structure?
In addition:
The possibility to get printer answers:
[BOCA] uses ReadPrinter method from winspool.drv to get printer answers.
[DllImport("winspool.Drv", EntryPoint = "ReadPrinter", SetLastError = true, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)] . public static extern bool ReadPrinter(IntPtr hPrinter, IntPtr pBytes, Int32 dwCount, out Int32 dwRead); ...
[Which is needed] to get printer remaining memory : when printing a lot of tickets, we send first tickets logo images to BOCA memory and then we send printing job with FGL raw data. Tickets FGL raw data contains only image memory references in BOCA memory. So the printing process is faster.
Quoting:
In addition: