List Client Side Printers
<p>How to list a client side printer in asp.net using c#?</p>

<p>My code: This will list the printers connected to the server.</p>

<pre><code>ManagementScope scope = new ManagementScope(@"\root\cimv2");
scope.Connect();
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_Printer");
foreach (ManagementObject printer in searcher.Get())
{
    string printerName = printer["Name"].ToString().ToLower();
    Response.Write("chethann            ");
    Response.Write(printerName);
}
</code></pre>
