PrinterName, IsValid printer : PrinterSettings : GUI Windows Form C# Source Code


Custom Search

C# Source Code » GUI Windows Form » PrinterSettings »

 

PrinterName, IsValid printer








    
 

using System;
using System.Drawing.Printing;

class MainClass {
    static void Main(string[] args) {
        foreach (string printerName in PrinterSettings.InstalledPrinters) {
            Console.WriteLine("Printer: {0}", printerName);

            PrinterSettings printer = new PrinterSettings();
            printer.PrinterName = printerName;
            Console.WriteLine(printer.IsValid);
        }
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo GUI Windows Form
» PrinterSettings