Results 1 to 2 of 2

Thread: Printer Spooler

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    1

    Question 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?

  2. #2
    jim mcnamara
    Guest
    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
  •  



Click Here to Expand Forum to Full Width