开发者

PrintQueue is the printer the default printer? [duplicate]

This question already has an answer here: How to determine the default printer using WPF? (1 answer) Closed 3 years ago.

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜