Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my app, I need take a list of printer in my network and select one of printers to print, how do this ? thanks so much
Posted

1 solution

use the below code to get the installed printers list

C#
private void Form1_Load (object sender, System.EventArgs e)
{
foreach (String printer in PrinterSettings.InstalledPrinters)
{
printersList.Items.Add (printer.ToString());
}
}


** before that you have to manually add the network printer from add printer wizard.
 
Share this answer
 
Comments
khachla3 26-Dec-11 11:37am    
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900