1. Steven Watkin
  2. PowerBuilder
  3. Friday, 26 July 2024 17:00 PM UTC

Hello,

I am using auto-size on a column in a datawindow and that works well. My problem is when the text wraps around, I want to know either the height of the column or the number of lines it now has. I tried using describe to get the height and I tried using linecount() to get the number of lines but neither works. Describing the Height doesn't give the height after wrapping and linecount() returns -1

What is the trick?

 

Thank you,

Steven Watkins 

 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 26 July 2024 17:56 PM UTC
  2. PowerBuilder
  3. # 1

Maybe you can set the detail band to be auto-size-height.

Then use the RowHeight() function?

 

Maybe this will help out too: https://community.appeon.com/index.php/qna/q-a/how-to-determine-new-height-of-a-column-with-autosize-height-true

regards.

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Friday, 26 July 2024 18:07 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Steven - 

Miguel is correct. The RowHeight() DataWindow expression function will return the height of a row that contains one or more auto-size height columns in the units used by the DataWindow data object.

Attached is an example external-source DW that contains its own data and uses Pixels as the unit of measure.

Best regards, John

Attachments (1)
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.