1. Roland Smith
  2. PowerBuilder
  3. Thursday, 26 April 2018 21:14 PM UTC

PB 2017 R2 Build 1769

We have a huge app which I did a trial conversion of from 12.5 to 2017. (Took 50 minutes)

There is a window with a Rich Text control that is used by end users to enter text which is saved to the database as HTML and is displayed in a browser by our web app which is developed separately using ASP.Net/C#.

In PB 2017 when the control is put in Preview mode, it is very narrow and only shows three words per line.

I submitted a bug report and they can't reproduce. I copied the window to a new target to give them as an example. The problem doesn't happen in the demo target.

Any ideas?


Roland Smith Accepted Answer Pending Moderation
  1. Friday, 27 April 2018 15:15 PM UTC
  2. PowerBuilder
  3. # 1

I was able to duplicate the error by copying the entire window to an empty target. Luckily I only had to recreate a couple objects to get it to compile.

I uploaded it to my bug report.

There is no obvious line of code or property setting that could cause this.

There are no comments made yet.
Daryl Foster Accepted Answer Pending Moderation
  1. Friday, 27 April 2018 01:20 AM UTC
  2. PowerBuilder
  3. # 2

Hi Roland,

We use the TE Edit control in our PB 10.5 application.  I've had a similar problem and it was related to the currently selected printer driver.  If a user has, for example, a label printer as their last printer, the rich text edit control preview seems to be based on the paper size from that printer.   In our case if the rich text is saved while that printer driver is active then the page size information is set in the RTF data so the next time the same RTF data is loaded it is still trying to display with those page setting regardless of what the current printer is.

Are you able to access the RTF data in your two programs to compare the page size info?

There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 26 April 2018 21:21 PM UTC
  2. PowerBuilder
  3. # 3

Hi Roland;

   If you compare the Window source code around the RTE in the migrated App vs the test case - anything pop-out at you syntax wise?

Regards ... Chris

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.