PrintQueueWatch dll

Aug 2 2024 3:20 PM

Anybody has use the PrintQueueWatch dll for monitor printJobs and printers.

I'm using the PrintQueueWatch dll for a simple app to monitor printers.

I wanna know how to use the function

PrintJob.Transfer.(string printerName, bool transfer)

The function is for transfer the print job to another printer, It's seems very easy to use, the function needs the printer name and a bool value to keep or not the print job in the original printer

but the problem is that always raises an exception

access denied

printQueueWatch  collection = new PrintQueueWatch.PrinterCollection();

PrinterInformation printer =  collection.Where(l=>l.printername == "the printer that I'm using")

printer.PrinterJobs.getJobById(Id).Transfer("the printer to transfer the printerJob", false) // false to keep the job in the original Printer.

The transfer function says access denied, it seems permissions to acces the new printer.

Thanks.


Answers (1)