I used the class System.Management.ManagementObjectSearcher class as follows :
System.Management.ManagementObjectSearcher searcher =
new System.Management.ManagementObjectSearcher("SELECT * FROM Win32_Printer");
the searcher.Get()returns printer objects even when not conneted to a
printer. It detectes all printers that are installed on my computer. and the
Printer status returns a value of Idle instead of Offline..
and when the user clicks on Print (when offline) it throws an exception. How
can I prevent this.
Can someone help me on this.
Thank you
-ZS