Wow, how can one misunderstand the documentation's sentence under SetDefaultPrinter() that clearly states "Note that if the printer involved was connected to using AddPrinterConnection, you must include both the servername and the sharename" ? I did add the printer using a AddPrinterConnection("\\servername\sharename") command. So I followed the instructions that I bolded above. How do you interpret sharename to mean printer name?

Maybe I followed the instructions too literally? But isn't that what programming is all about?