Click to See Complete Forum and Search --> : Vb.net 2008 cancel print job win xp


Blincy
September 29th, 2009, 07:00 AM
I need a procedure that cancels all the print jobs of a specific printer.

I use vb.net 3.5 & win xp pro.

Plz don't send me "restart the spool service", I need code to cancel all print jobs.
Thanks in advance.

dglienna
September 29th, 2009, 05:33 PM
PRNJOBS.VBS

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/prnjobs.mspx?mfr=true

Blincy
September 30th, 2009, 02:26 AM
Thank you very much.
But how can I use the result of a vbs in the .net environment in order to get feedback from the script?

dglienna
September 30th, 2009, 01:49 PM
You can print the results out to a file, and read them back.