private void Window_Loaded(object sender, RoutedEventArgs e)
{int printerNum = System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count;for (int i = 0; i < printerNum; i++){string info;info = i + "="+System.Drawing.Printing.PrinterSettings.InstalledPrinters[i].ToString();;lbPrinterList.Items.Add(info);}}
评论回复