0
Votes
Undo
  1. Miguel Leeuwe
  2. PowerBuilder
  3. Thursday, 19 October 2023 16:46 PM UTC

Hi all,

We have a mix of customers, some using Citrix others not.

Does anyone know the effect of having the following in a PB.INI file when NOT running on Citrix?

[Application]
Citrix=1

TIA
Accepted Answer
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Monday, 23 October 2023 03:09 AM UTC
  2. PowerBuilder
  3. # Permalink

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,

Comment
  1. Miguel Leeuwe
  2. Monday, 23 October 2023 08:50 AM UTC
Thank you Mark.
  1. Helpful
  1. Mark Lee @Appeon
  2. Monday, 23 October 2023 08:58 AM UTC
You are welcome!
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 19 October 2023 19:40 PM UTC
  2. PowerBuilder
  3. # 1

We probably will need a response from Appeon Engineering to be certain, but based on the description of this setting,

    https://docs.appeon.com/pb2022r2/pbug/PBINI_settings.html

my guess is that if this setting is enabled in a non-Citrix environment, the only effect would be that the application user's default printer is determined each time the PB virtual machine and/or the DataWindow Engine needs this information, OR it simply delays the determination of the user's default printer until the FIRST time it is needed.

Since it is not too difficult for an application to figure out if it is running on Citrix or not, the code supporting this setting may be smart enough to only perform this "Citrix-only" functionality when Citrix is being used. If you have a Citrix environment that you can test with, enable the setting, start the app and print something... then while the app remains running, change your default printer and print again. The second print job will be directed to the most recently-identified default printer if PB queries this repeatedly.

HTH, John

Comment
  1. Miguel Leeuwe
  2. Thursday, 19 October 2023 23:41 PM UTC
Thanks John,

Yes, I know how to figure out if an app is running on Citix or not, but that'll be too late, the app has already been started.

Let's hope Appeon gives some more info,

regards.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.