Hi Miguel,
Please refer to the information in the help document as follows:
https://docs.appeon.com/pb2022r2/pbug/PBINI_settings.html
Whether the programs compiled by PowerBuilder obtain the "default" printer(s) of Windows in real time instead of getting a copy of the "default" printer(s) when the application starts as before.
1 = For handling "default" printer(s) in Citrix environment
0 = For not handling "default" printer(s) in Citrix environment
Note: This key is supported starting from version 2019 R3 and works on Windows 10 and later.
For non-Citrix environments, turning this setting on, as described in the help documentation, you get the "default" printer(s) of Windows in real time.
When the user manually changes the default printer of Windows to Microsoft Print to PDF, a PB program will also react synchronously. For example, if you use the printsetup() method, Microsoft Print to PDF will be the new default printer in the printer listed.
This is to solve the problem that, in the Citrix environment, the default printer in the Windows printer list obtained by the PB program cannot be a dynamically mapped printer.
Regards,