Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在本地打印机上做一些测试。我可以使用 python 模块 win32print 打印到它并获取它的状态,但我不知道如何删除排队的作业?
谢谢
您可以使用 SetJob 将作业的状态设置为已取消。您需要对所有活动的打印作业执行此操作。没有一种方法可以删除所有作业。
http://timgolden.me.uk/pywin32-docs/win32print__SetJob_meth.html