activereportspropertyinfo

Active Reports 7 - How to get the height of a detail section filled with data


Is there a way to get/set the height of the detail section after it has been fed with data ?

The only height I get is the one I set on the property of my detail section.


Solution

  • There isn't any direct way to determine the height of the data rendered in the Detail section. However, a workaround for you is to create a counter and determine how many times the Detail Section is being rendered. Since you already know the height of the Detail Section, the available height or the data-occupied height can be calculated by multiplying the value of counter with the value of the static height of the Detail Section.

    A similar implementation id discussed here and you may also download a working sample from the mentioned forum post.

    Regards, Mohita