PDA

Click to See Complete Forum and Search --> : Cancel Print job?


JSpagnol
Mar 21st, 2001, 06:41 PM
I have used the API "printer_info_1" and "job_info_2" to get information about the printer and it's print jobs.

BUT I don't see how to use this to cancel a print job.

I have used the shell command and used the NET PRINT command to cancel the print job in windows 2000 professional.

BUT the NET PRINT command doesn't work Windows 98.

Is there a way to use API to cancel a print job?

I hope I supplied enough information. Please help me.

KrishnaSantosh
Mar 23rd, 2001, 06:44 AM
I dont know whether it will work. But anyway. here
is the API

Public Declare Function EndDocPrinter Lib "winspool.drv" Alias "EndDocPrinter" (ByVal hPrinter As Long) As Long