1. Konstantin Goldobin
  2. PowerBuilder
  3. Monday, 30 October 2023 12:51 PM UTC

Hello,

PB 2019 R3 2728. A string column 2784x60, Autosize Height turned on, placed in Detail with Autosize Height turned on, too:

The font is Arial 8pt. In preview, the text takes 4 lines:

In Print Preview, it looks different:

If I print it to, say, MS PDF printer, I get a third view:

What can cause this and how can I fix this reliably?

Best regards,
Konstantin

Sivaprakash BKR Accepted Answer Pending Moderation
  1. Monday, 30 October 2023 13:50 PM UTC
  2. PowerBuilder
  3. # 1

I face a similar issue but could not create a test case as asked by Appeon [ Track Bugs | Appeon ].   The output differs on different monitors with different display settings.   If a reproduceable test case could be created for this issue, then Appeon could try to attempt to solve this issue.

Happiness Always
BKR Sivaprakash

 

Comment
There are no comments made yet.
Konstantin Goldobin Accepted Answer Pending Moderation
  1. Tuesday, 31 October 2023 15:08 PM UTC
  2. PowerBuilder
  3. # 2

Trying to see what will happen with a text object, I added one to the datawindow and inserted the same text:

As soon as I move the focus away from the text object, e.g. by clicking somewhere in the detail band, the text gets cropped:

Saving the dw, closing and reopening it in the painter, closing and restarting PB, removing the apostrophe in "city's" did not change this behaviour. Any ideas as to what is going on? Is there suddenly a limit now for how long a text can be?

Best regards,
Konstantin

Comment
  1. Sivaprakash BKR
  2. Wednesday, 1 November 2023 06:33 AM UTC
Then max characters allowed for Text control should be 255.
  1. Helpful
  1. Konstantin Goldobin
  2. Wednesday, 1 November 2023 08:55 AM UTC
I don't remember facing this limit ever... Is it something new in PB2019? Do you know if it's documented somewhere and I just failed to find it?
  1. Helpful
  1. Sivaprakash BKR
  2. Wednesday, 1 November 2023 11:55 AM UTC
Do you remember which version you tried this? I tried in both PB 10.5 b 7825 and PB 11.5 3127. In both versions the text got cropped. Also, in PB 2022 R2 2819.
  1. Helpful
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 1 November 2023 06:45 AM UTC
  2. PowerBuilder
  3. # 3

Hi Konstantin,

this is a very, very old problem with PB. Seems that some text size calculations are not correct. So the calculated height assumes that the text needs less lines but in fact there is an additional line feed (in your case before "permitted").

I don't know a workaround of this.

But if you change the print preview zoom you can see that it is sometimes correct and sometimes not. So I added a zoom option to my application to give the user a way to see the correct output.

HTH,

René

Comment
  1. Ronnie Po
  2. Wednesday, 1 November 2023 17:56 PM UTC
This may not be an option for your application, but a monotype font (e.g. Courier, Lucida Console) might render more consistently.
  1. Helpful 1
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.