1. Roland Smith
  2. PowerBuilder
  3. Tuesday, 30 January 2024 13:31 PM UTC

The help lists both ‘DataWindow.Printer’ and ‘DataWindow.Print.PrinterName’ as ways to specify the printer. The DataWindow source code only has Print.PrinterName.

What is the difference?

I'm having an issue where certain DataWindow objects retrieve extremely slowly when the app is run via Remote Desktop. In one test a retrieve that should have taken 9 seconds took 15 minutes.

The cause of the slowness is due to the default printer chosen by PowerBuilder is one that is redirected from the client machine. I'm trying different methods of changing the default printer to the server's 'Sybase DataWindow PS' printer. This solves the slowness problem. I am restoring the default printer after retrieve so they can print to paper if needed.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 30 January 2024 21:02 PM UTC
  2. PowerBuilder
  3. # 1

Hi Roland;

  Yes, the DWO is basically represented within the DW Control as  a bitmap. This DWO's image is rendered by using the current printer for the App's  DWO's where it derives the runtime fonts from. So if the current printer does not have the DWO font(s) used in the DWO, the DWO asks the O/S to "synthesize" each font for each object at run time. This font synthesizing is very CPU intense can be extremely slow as the O/S has to do that for every object it encounters in the DWO!

  My STD framework though can give you important statistics on how your App's DC or DS printing performance is going and what each DWO is using printer wise. For example:

   This can be important information to know at both development and / or production time in order to counteract this printer mapping overhead & significantly boost printing performance.  Food for thought.  ;-)

Regards ... Chris

Comment
  1. Roland Smith
  2. Wednesday, 31 January 2024 17:34 PM UTC
Thanks. I noticed that the first entry in the Log Data has the word printer misspelled.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 31 January 2024 18:10 PM UTC
Thanks Roland .. you have a good eye! I have fixed this in the English message table DWO. The message in Italian, French & Spanish were OK.

This spelling will now appear correctly in the next Framework's GA release 2024 R1 (coming very soon!). ;-)

FYI: The 2024R1 framework is currently in an RC (Release Candidate) mode ..

https://sourceforge.net/projects/stdfndclass/files/Applications/PowerBuilder/OrderEntry/Beta



  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.