Link to home
Start Free TrialLog in
Avatar of VBdotnet2005
VBdotnet2005Flag for United States of America

asked on

WPF set default printer

How can I set a specific printer to default printer in WPF?
ASKER CERTIFIED SOLUTION
Avatar of anjos
anjos

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VBdotnet2005

ASKER

I don't see ManagementObjectSearcher after importing
Imports System.Management.Instrumentation
Imports System.Management
Avatar of anjos
anjos

and if you try this:
http://stackoverflow.com/questions/3692384/missing-directive-or-assembly-reference-using-wmi-managementobjectsearcher

"You will have to rightclick the project -> add reference and add the System.Management assembly"
I got it to work now.  Thank you