Confirm successful print programmatically in windows

本秂侑毒 提交于 2019-12-19 03:16:42

问题


My company is developing a financial application.
Now we have to deal with a new law that demands that we take different actions whether a receipt is printed or not.

The receipts are printed on a laserprinter on A4 paper using the standard print queue in windows. Is there any way to programmatically check if a certain print job actually has succeeded? The module requiring this is developed in c#.


回答1:


I am not aware of a fully managed way to perform this. Interop with FindFirstPrinterChangeNotification and FindNextPrinterChangeNotification might be required. You could also take a look at existing wrappers allowing to monitor the printer queue.



来源:https://stackoverflow.com/questions/1921487/confirm-successful-print-programmatically-in-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!