Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine the default printer using WPF?

Tags:

.net

printing

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.

like image 243
Michael Damatov Avatar asked Jun 02 '09 10:06

Michael Damatov


1 Answers

LocalPrintServer.GetDefaultPrintQueue()
like image 159
Michael Damatov Avatar answered Oct 12 '22 04:10

Michael Damatov