PrintDocument prtDoc = new printdocument (); string strdefaultprinter = printername; // Get the default printer name
private void PopulateInstalledPrintersCombo () {// Add list of installed printers found to the combo box. (all the playing computer system to join the list box) // The pkInstalledPrinters string will be used to provide the display string. (display list box The string is provided by pkinstalledprinters) Foreach (String Pkinstalledprinters in PrinterSettings.installedprinters) {ComboinStalledprinters.Items.Add (pkinstalledprinters);}}