I'm seeing different behavior between two versions of our application. It just so happens that we changed versions of PowerBuilder from the first version to the second, so the behavior difference could be caused by a code change of ours, or some change in PowerBuilder.
The PowerBuilder versions in question are 2017 and 2017R3.
The behavior change is this: If the default printer is changed at the OS level while our application is open, the application immediately sees that change in our earlier version built with PB 2017, but does not in our version built with PB 2017R3. With that version, you have to actually restart the application for it to register the change in default printer.
I'm told by my co-developers that we haven't made any changes that would be related to how our application deals with printers. Is there a known issue here that would explain this? Or could someone run a test to see?
Thanks in advance.
I have now confirmed your default printer behaviour as well on my W10 build 19044.1645, as follows:.
=> For Apps run from the PB IDE (i am using PB2021 build 1506), the default printer never changes (even if you change it in the O/S control Panel).
=> For Apps run from their EXE's, the default printer ONLY changes when you restart the EXE
I would suggest opening a Support Ticket for this issue.
Regards ... Chris