Printer status

I have done a search for this topic and found nothing. Is there a way to check a printer status (available/ready/online) before sending a print job to the printer?

TKS

It looks like you’re going to need some native driver library to connect to the printer. Here’s an example for the Windows win32print:

https://mail.python.org/pipermail/python-win32/2009-April/009005.html

Also check this stackoverflow link for the printer codes.

Looks lioke it might work but I cannot get win32print to import to my app module.

Yea, that’s because win32print is a Python 3rd party extension library and Python libraries aren’t easy to implement in Jython (that’s what Ignition uses).

I found this old forum posts which might work out well for ya: http://www.inductiveautomation.com/forum/viewtopic.php?f=23&t=6759