Replies: 1 comment
-
|
Hi @Razielthc ! You are right, the Win32Raw connector lacks the I was able to workaround this problem on the CupsPrinter connector some time ago and, while it is not perfect and the status is not accurate (it returns the print queue status, not the printer status actually), it gets the job done and maintains API compatibility with the low level connectors. Maybe we could dig a bit into the pywin32 library and try to find some method that we could use to implement the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have tested the method using Network and if it works, I would like to do the same with a printer that uses the Win32RAW connector, I checked the classes and I think the error is because Win32RAW does not have a _read() method in its class, Any suggestions on how to use that method?
from escpos.printer import Network, Usb, Win32Raw
from escpos.exceptions import DeviceNotFoundError, ConfigNotFoundError, USBNotFoundError, ConfigSectionMissingError, Error
try:
p = Win32Raw(printer_name="POS-80C", profile="TM-T20II")
except (Exception, DeviceNotFoundError, WindowsError, ConfigNotFoundError, ConfigSectionMissingError, Error) as e:
print("Error", type(e))
Beta Was this translation helpful? Give feedback.
All reactions