|
-
Aug 7th, 2002, 08:35 AM
#1
Thread Starter
PowerPoster
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 ?
-
Aug 7th, 2002, 08:41 AM
#2
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...
-
Aug 7th, 2002, 08:53 AM
#3
Thread Starter
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|