finding and displaying the default printerr on a win form

I am looking for code that finds the default printer when a user opens a winform.
abobby2005Asked:
Who is Participating?
 
Joe_GriffithConnect With a Mentor Commented:
A new print document will, by default, be associated with the default printer. Therefore the easiest way to find the default printer is to instantiate a new print document and look at its printer:

    Imports System.Drawing.Printing
    .
    .
    Dim x As New PrintDocument
    MessageBox.Show(x.PrinterSettings.PrinterName)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.