Setting the Windows default printer

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

Guest

I would like to set the Windows default printer from a C# application. I
searched MSDN but cannot find an answer to this simple problem...

Any ideas?
Thanks,
Guido
 
Hi

Thanks for your feedback.

Because we can use WMI in .NET via System.Management namespace which is all
managed code, but if you wants to use it on earlier OS, I think we have to
use the P/Invoke into the API.

So the P/Invoke is also a good alternative on earlier OS platforms.

Thanks for your sharing the experience here.


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top