Search This Blog

Thursday, April 24, 2014

Gets the default printer C#

C# > Printing > PrinterSettings > IsDefaultPrinter

Gets the default printer.

Example


PrintDocument printDoc = new PrintDocument();
if (printDoc.PrinterSettings.IsDefaultPrinter)
{
MessageBox.Show (printDoc.PrinterSettings.PrinterName);

}