PrintQueue is the printer the default printer? [duplicate]
I'm making my own dialog for printing in my application, now I have this code to put all the printers in a combobox:
PrintServer server = new PrintServer();
foreach (PrintQueue queue in serv开发者_高级运维er.GetPrintQueues())
{
cboPrinters.Items.Add(queue.FullName);
}
However, I would need select the default printer, how can I see which one is the default printer?
var DefaultPrinter = new LocalPrintServer().DefaultPrintQueue;
精彩评论