1. Peter Thiem
  2. PowerBuilder
  3. Thursday, 28 April 2022 02:39 AM UTC

Hi PB Community,

For my application deployed as a Citrix hosted application, when the users prints a batch of 100's of separate documents using the RichTextEdit.Print() function, the documents are arriving on the local printer out of order. 

The environment is using:

  • PowerBuilder 2021
  • Citrix XPS Universal Printer Driver

As far as I can tell, this *mostly* looks like a Citrix bug, rather than a PowerBuilder bug because:

  • Outside of Citrix, I cannot reproduce.
  • Afaict in Citrix, the documents are "submitted" in the print queue/spooler on the Citrix host in the correct order by the application.

But maybe PowerBuilder is partially involved because:

  • The problem did not affect this application when implemented in Powerbuilder.Net 12.5 (it likely has a very different printing subsystem).
  • I can't find much of the problem affecting other types of applications in Citrix with google searches.
  • Opening the Printer Setup Citrix "Local Settings" within the application, it alleviates the problem (which is very odd, maybe it initializes the printer driver/spooler in some way?...).

Would anyone have experienced similar problems, experiences, or have advice?

Cheers, Peter.

Accepted Answer
Peter Thiem Accepted Answer Pending Moderation
  1. Thursday, 5 May 2022 00:55 AM UTC
  2. PowerBuilder
  3. # Permalink

Fwiw,

After some troubleshooting my leading theory is that it is caused due to this new version of the application printing faster than the old version.

The old version (Powerbuilder.Net 12.5) would send pages to the printer at about 50 ppm.

The new version (Powerbuilder 2021) would send pages to the printer at about 120 ppm.

I confirmed that the print jobs are delivered to print queue on the Citrix Host in order (by pausing print queue, and controlling release of jobs by unpausing).

The Citrix XPS Universal Print Driver does not appear to guarantee order, and when given jobs at high rates, will deliver to the local print queue out of order.

So this problem appears to be specific to Citrix and the Citrix XPS Universal Print Driver (at least how it is set up for this application).

Our Citrix admins don't know any way to configure the Citrix XPS Universal Print Driver differently, and they don't like set up printers drivers directly.

We will resolve it by adding some delays to the printing:

It will slow it down a bit, but at least it should work.

Cheers, Peter.

 

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 5 May 2022 01:40 AM UTC
Thanks for sharing the solution!
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 28 April 2022 15:12 PM UTC
  2. PowerBuilder
  3. # 1

Hi Peter;

  FWIW:  PB.Net is a totally different product & architecture than the current PB versions (even ones from Sybase or SAP).

Regards .. Chris

Comment
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.