2009-06-02 61 views
7

要檢索的打印機列表中我使用:如何確定使用WPF的默認打印機?

new LocalPrintServer().GetPrintQueues(new[] { EnumeratedPrintQueueTypes.Local, EnumeratedPrintQueueTypes.Connections }) 

如何確定,該打印機是默認打印機?

注:使用System.Printing.dll組件。

回答

13
LocalPrintServer.GetDefaultPrintQueue() 
相關問題