Merrion Level: VB Guru
 Registered: 15-04-2002 Posts: 37
|
Re: How to know when a printing is started Archived to Disk
The solution depends on which operating system you are running.
* If you are running Windows 95/98/Me then you need to subclass your application's main form and intercept any WM_SPOOLERSTATUS messages sent to it.
* If you are running Windows NT/2000/XP you need to create a waitable object using FindFirstPrinterChangeNotification then WaitForSingleObject and FindnextPrinterChangeNotification API calls.
In both cases you can read the print queue for your printer as per the code in this article
HTH,
Duncan
____________________________
--8<------------------------------
Free components and source code - see http://www.merrioncomputing.com/Download/index.htm for details
|