Yaron Posted December 11, 2003 Posted December 11, 2003 Hi How can I find using C# the list of printers available? In VB, I used to do the following: Dim oPrn As Printer For Each oPrn In Printers AddToList oPrn.DeviceName Next Thanks Quote
Administrators PlausiblyDamp Posted December 11, 2003 Administrators Posted December 11, 2003 straight from msdn private void PopulateInstalledPrintersCombo() { // Add list of installed printers found to the combo box. // The pkInstalledPrinters string will be used to provide the display string. String pkInstalledPrinters; for (int i = 0; i < PrinterSettings.InstalledPrinters.Count; i++){ pkInstalledPrinters = PrinterSettings.InstalledPrinters[i]; comboInstalledPrinters.Items.Add(pkInstalledPrinters); } } Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.