Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Confirm successful print programmatically in windows

Tags:

c#

printing

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#.

like image 822
Jan Obrestad Avatar asked Dec 17 '09 12:12

Jan Obrestad


1 Answers

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.

like image 100
Darin Dimitrov Avatar answered Nov 16 '22 03:11

Darin Dimitrov