1. Sivaprakash BKR
  2. PowerBuilder
  3. Friday, 3 January 2020 11:07 AM UTC

Hello,

Using PB 2017 R3, Postgresql 11.6

Got a datawindow with few columns (all with autosize height property set), expecting the column (particularly accountnarration field) to grow in height and display the contents in full.

But for a particular set of contents, it doesn't display the contents in full.  Yes, last word is stripped off, mostly.  This doesn't happen for all contents, but for few.  All the contents of accountnarration fields are generated through PB application.  

A sample application is attached herewith.  Just open the datawindow, dw_rep_ledger, then view -> Preveiw, then File - Print Preview.  

What you see is

Payment No. : PAY-15 Dt. : 20/12/2019 From KRITHIKA vide Cheque No. : 000107 Dt :

Here the actual date is not shown, in Print Preview mode.  Without Print Preview you could view the full contents. 

Even a slight change in the contents of account narration, like a extra space or extra characters, corrects the display.  Even switching the font to Arial or increasing the width of the column also works out.  

Here, as we generate such accountnarrations through our applications, it constitutes around 15% of the entries, which doesn't show up correctly in this report.  This is in our test case, not yet gone live. 

The same value displayed in other reports, with higher width, works perfectly.  

Any idea why this truncation happens in print preview mode ?  

We show all of the reports in Print Preview mode only.  

Happiness Always
BKR Sivaprakash

 

Attachments (1)
Markus Kreuzer Accepted Answer Pending Moderation
  1. Wednesday, 22 April 2020 12:46 PM UTC
  2. PowerBuilder
  3. # 1

Hi all,

PB 2017 R3 on Windows 10

I have the same problem and it seems to be a very old PB-problem.

I've found an entry on SAP.com

https://answers.sap.com/questions/34283/powerbuilder-datawindowprintpreview-causing-uninte.html

Kind Repards

Markus

Comment
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Saturday, 4 January 2020 11:07 AM UTC
  2. PowerBuilder
  3. # 2

OK.  This issued occurred in systems, where the [ Windows ] Display is set to Medium - 125%, [ Control Panel - All Control Panel Items - Display ] in Windows 7.  Tested in another system also, the same issue.    By changing the display to Small - 100%, in both Win 7 system, we got the full content displayed.

It issue is not there in Windows 10 system with both 100% and 125% settings. 

Not sure whether it to be considered as a bug or not ?

Happiness Always
BKR Sivaprakash

 

Comment
There are no comments made yet.
Arthur Hefti Accepted Answer Pending Moderation
  1. Saturday, 4 January 2020 05:46 AM UTC
  2. PowerBuilder
  3. # 3

Hi

Try to zoom the datawindow smaller and then back again to 100%:

dw_1.object.datawindow.print.preview.zoom = 10 / dw_1.object.datawindow.print.preview.zoom = 100

Regards
Arthur

Comment
  1. Sivaprakash BKR
  2. Saturday, 4 January 2020 11:08 AM UTC
No Arthur Hefti, When Zoomed in (90%), contents got displayed, but again in the same state when zoomed out (100%).
  1. Helpful
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Saturday, 4 January 2020 00:11 AM UTC
  2. PowerBuilder
  3. # 4

You already have all of the columns set to AUTOSIZE HEIGHT ON.
Did you set the BAND(s) setting of AUTOSIZE HEIGHT to ON?

Olan

Comment
  1. Sivaprakash BKR
  2. Saturday, 4 January 2020 10:53 AM UTC
Olan,

Yes, all fields is set with Autosize Height on. It displays perfectly when the content is added with either 1 or 2 chars.
  1. Helpful
  1. Sivaprakash BKR
  2. Saturday, 4 January 2020 11:09 AM UTC
Band also set to autoSize Height on. Longer values gets displayed correctly [ 5 lines or 6 lines ]

  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.