We have a receipt printer that shows a Window notification (Win10 32-bit app) when it’s running low on paper. Is there a way that my app can receive that notification too so I can take it into account?
Do you know the make and model of the printer, it might be supported via a raw command sent to the printer which the printer driver is doing behind the scenes.
E.g. the zebra I have here, I can send RAW HS and it tells me a whole host of things including if the paper is out, it might be the same with yours for paper levels.
Hi Bob,
Maybe try the following command in a shell instance:
wmic printer get detectederrorstate
A returned value of 3 is low paper, 4 is no paper, 5 is low toner, etc. More information is available on the Microsoft website, and search for win32_printer class.
Edit: typing error when answering with my phone.
[quote=373597:@Eugene Dakin]Hi Bob,
Maybe try the following command in a shell instance:
wmic printer get detectederrorstate
A returned value of 3 is low paper, 4 is no paper, 5 is low toner, etc. More information is available on the Microsoft website, and search for win32_printer class.
Edit: typing error when answering with my phone.[/quote]
A quick test showed that this method found an out of paper event. Awesome! Thank you so much!