Closed fearless0307 closed 2 months ago
Hi,
Why do you think that this is a bug? By default in Windows, documents are deleted, unless you ask the printer driver to keep spooled documents. This should not affect the reliability of your printing, but rather affects the retention on your PC.
I tried the same code in MacOS, but there is didn't give such warnings. I am trying to build an auto print system, where a user can scan a barcode using a barcode scanner which populates in the in UI, it will hit a API
If the APIs behave differently when a document is deleted, I would agree that that's a bug. CUPS is weird because it preserves the job on disk for a while incase you want to reprint it.
sudo cupsctl webinterface=yes
PDFwriter (as example): http://localhost:631/printers/PDFwriter?which_jobs=completed
This is unintuitive because the MacOS printing dialog does not show the job being retained. I'm not sure why however if you can reproduce that deleting a JOB doesn't trigger the same type of API warning, we'd be happy to investigate.
For your use-case I would ignore any status events for JOB
that are DELETING
or DELETED
. Note, printers can be deleted too, those events may want to remain. :)
Hi,
I am building an app where an API will return a PDF link and using QzTray It will auto-print in the selected printer.
To make sure that the printer is connected and ready to print, I am using printer event callback and whenever the severity != "INFO"
, I mark the printer as some error.
For now, we have changed the above check to not treat severity == "WARN" and statusText == "DELETED"
as an error and keep the printer status as ready to print.
I just wanted to know why the same code behaves differently in MacOS and Windows, is it a code issue or it's by design, or something else (as you said in the above comment, it might be due to CUPS)?
Thanks for the confirmation.
I would assume this is a CUPS-ism. WARN
might not be the best severity in hindsight, but it's what we selected when we wrote the API. We might switch this back to INFO
, as it seems more suitable.
Starting with QZ Tray 2.2.4, this will be INFO
, instead of WARN
. Thanks for the report. If you need a build in advance of this release, please reach out to support@qz.io (commercial license) or you may build your own following our compilation guide.
Hi Team,
I am facing a issue in Windows OS while printing in a Label printer (TSC DA310 using Seagull driver). When I send a command for printing, the status callback are:
I tried setting the printer option as guided in issue-888
Code to trigger print:
QzTray version: 2.2.3 Windows OS version: tried in both 10 and 11
Please help here.
Thanks