Results 1 to 3 of 3

Thread: Printer Monitor?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288

    Printer Monitor?

    Any idea on how to create a printer monitor that has a counter which increases every time a print out is given and then passes the printing data to the actual printer driver ?

  2. #2
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148
    How you do this depends on which operating system you are using. In Windows 95, 98 or Me (the toy OSes) you subclass your application main window and look out for a WM_SPOOLERSTATUS message ... but this can be quite unrelkiable.
    In Windows NT, 2000, XP or Server.Net you install call FindFirstPrinterChangeNotification followed by WaitForMultipleObjects and FindnextPrinterChangeNotification in a loop to be notified whenever a printer event occurs......your best bet is to go to The printer status article and to download the code linked to the bottom of that article - the PrintWatchServer.vbp project demonstrates this...

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Thanks, I will check it out and return back to you if I have some problems.

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