问题
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