Get All Installed Printers in C#

Ranjeet_8
Posted by Ranjeet_8 under ASP.NET category on | Points: 40 | Views : 2069
Get All Installed Printers

using System.Drawing.Printing;

protected void Page_Load(object sender, EventArgs e)
{
foreach (string IPrinter in PrinterSettings.InstalledPrinters)
RadioButtonList1.Items.Add(IPrinter);
}

Add this control on .Aspx page

<asp:RadioButtonList ID="RadioButtonList1" runat="server">
</asp:RadioButtonList>

Comments or Responses

Posted by: T.Saravanan on: 12/31/2012 Level:Silver | Status: [Member] [MVP] | Points: 10
Nice Info.

Login to post response