Michael Damatov
Michael Damatov

Reputation: 15643

How to determine the default printer using WPF?

To retrieve the list of printers I use:

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

How do I determine, which of the printers is the default printer?

Note: the System.Printing.dll assembly is used.

Upvotes: 8

Views: 5888

Answers (1)

Michael Damatov
Michael Damatov

Reputation: 15643

LocalPrintServer.GetDefaultPrintQueue()

Upvotes: 16

Related Questions