Python Win32print Job Status

前端 未结 2 1103
醉梦人生
醉梦人生 2021-01-13 22:36

I have been trying to get the status of a print job using win32print in Python.

The status codes provided by win32print don\'t seem to match the status code for the

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-13 23:08

    The returned status is a bit mask, as described here , for example . Multiple values ​​can be OR'ed, so your value of 8208(hex 0x00002010) indicates that the printer has (all) status.

    • hex 0x00002000 = PRINTER_STATUS_WAITING
    • hex 0x00000010 = PRINTER_STATUS_PAPER_OUT

提交回复
热议问题