Default Printer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, i would like to set a certain printer to be the default printer from
within my application developed using C#
 
Ahmed,

Use the classes in the System.Management namespace to query for the
instance of the WIn32_Printer WMI class (you will get a management object),
and then call the SetDefaultPrinter method on it.

Hope this helps.
 
Back
Top