Get the default printer name

xiaoxiao2021-03-05  47

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);}}

转载请注明原文地址:https://www.9cbs.com/read-31841.html

New Post(0)