I need to delete the printer spooler with VB? The abortprinter call is returning 1. I have not found any examples using this api. Ideas?
Printable View
I need to delete the printer spooler with VB? The abortprinter call is returning 1. I have not found any examples using this api. Ideas?
One choice -
You can also use callbacks with SetAbortProc to stop printing.Code:declare function AbortDoc lib "gdi32" (ByBal hdc as long) as Long
Sub StopPrint()
call abortdoc printer.hDC
End Sub
This one is complex, have a look at MSDN - this page blathers about Windows CE, but this api exists in Win95, 98, NT.
http://msdn.microsoft.com/library/de...tabortproc.asp
If you want VB sample code, get a copy of Dan Appleman's book 'VB programmer's guide to the win32 api'