1. Roland Smith
  2. PowerBuilder
  3. Wednesday, 6 April 2022 20:48 PM UTC

PowerBuilder 2019 Build 2170

We have a report that covers about a page and a half with the header/detail band. Nothing in the footer band.

The summary band has three nested reports. The nested reports and the summary band are set to Autosize Height = true and have small default size.

The first nested report starts at the top of page 3 (good) but then the report ends at the bottom of the page even though there are enough rows to fill several pages. Nested report 2 has zero rows and nested report 3 has one.

Is this a new bug I should report or has it been fixed already? If fixed, what version/build?

Sivaprakash BKR Accepted Answer Pending Moderation
  1. Thursday, 7 April 2022 04:59 AM UTC
  2. PowerBuilder
  3. # 1

Roland, 

See whether this workaround (?) works for you.

After retrieve and before print

dw_print.Modify('Datawindow.Header_1.AutoSize=No')                     // Set AutoSize to 'No'
dw_print.Modify('DataWindow.Header_1.Height=50')                       // Set the height to Possible Minimum value
dw_print.Modify('Datawindow.Header_1.AutoSize=Yes')                   // Again Set AutoSize to 'Yes'

Change Header_1 to your band (Summary) and see if this works.

This worked for me in few situations where columns have 'slideup' property set.

Happiness Always
BKR Sivaprakash

 

Comment
  1. Roland Smith
  2. Thursday, 7 April 2022 13:52 PM UTC
You have a syntax error, it should be:

dw_print.Modify("Datawindow.Summary.Height.AutoSize=No")

It didn't help. I'll report a bug and see what happens.
  1. Helpful
  1. Sivaprakash BKR
  2. Friday, 8 April 2022 12:19 PM UTC
Roland,

My code snippet was set autosize to header_1 band, not for summary band. Sad that it doesn't work out.
  1. Helpful
  1. Roland Smith
  2. Friday, 8 April 2022 13:59 PM UTC
The problem with your suggestion was that the property is named 'Height.AutoSize', not 'AutoSize'. It may be different on detail band, I didn't look at that.



We are moving the nested reports to the detail band with it set to only show on last row. I submitted a bug report.
  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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.