CommonDialog1.ShowPrinter not working under some terminal servers ...
We have had some reports, and I confirmed one via a remote support session, that the method of selecting a printer using the CommonDialog is not working under some terminal environments. The VB6 code is pretty darn simple (CommonDialog1.ShowPrinter).
It works fine under XP/Vista/7/8/10 and most of the server versions we have installed users on. But for some, it silently ignores the user's selection. They get no error, but the printer selection does not change either.
Any idea what could be causing this? Is there anything we could check and/or a known work-around?
I've had some circumstances in VBA where the "send to Printer" command was sent before the OS had time to change printers. Usually a network printer. I had to set up a loop that exited after a preset time or when the ActivePrinter.Name = the user selected printer.name.