setting a printer as default

How do you set a printer to be the default printer?  I have been trying to do it using AddPrinter() and in the PRINTER_INFO_2 struct I set the attributes to PRINTER_ATTRIBUTE_DEFAULT, but when I do this, I get the message  "No default printer selected." from MS Works,
Can anyone help?
Who is Participating?
trestanConnect With a Mentor Commented:
Please have a look at this KB article:
Hope it help.
curtisnAuthor Commented:
Thanks I appreciate it that helped a lot.
I'm curious, How did you find those two sites?
As you can see from my homepage, I have a lot of surfer on the internet. I keep a clue of the site I feel interested.
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.