I need to get the default printer name. I\'ll be using C# but I suspect this is more of a framework question and isn\'t language specific.
I use always in this case the System.Printing.LocalPrintServer, which makes also possible to obtain whether the printer is local, network or fax.
string defaultPrinter;
using(var printServer = new LocalPrintServer()) {
defaultPrinter = printServer.DefaultPrintQueue.FullName);
}
or using a static method GetDefaultPrintQueue
LocalPrintServer.GetDefaultPrintQueue().FullName