G Guest Sep 11, 2005 #1 Hi, i would like to set a certain printer to be the default printer from within my application developed using C#
Hi, i would like to set a certain printer to be the default printer from within my application developed using C#
N Nicholas Paldino [.NET/C# MVP] Sep 11, 2005 #2 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.
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.