|
-
Aug 28th, 2001, 08:44 PM
#1
Thread Starter
New Member
Printer Spooler
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?
-
Sep 1st, 2001, 10:57 AM
#2
One choice -
Code:
declare function AbortDoc lib "gdi32" (ByBal hdc as long) as Long
Sub StopPrint()
call abortdoc printer.hDC
End Sub
You can also use callbacks with SetAbortProc to stop printing.
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'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|