How to set the detail height programatically in ActiveReports

2.2k Views Asked by At

does anyone know how to set the height of the detail section in my report programatically (e.g. in detail_format or after/before_print methods)?

Setting the (float) height in detail_format for each datasource row has no effect.

Do I have to set the "Can Grow" / "Can Shrink" properties to FALSE?

Thanks in advance, Walter

1

There are 1 best solutions below

3
On

I would suggest keeping the CanGrow and CanShrink properties as it is (default). The detail section grow as each row renders. You can manually set the height of the detail section like this:

private void detail_Format(object sender, EventArgs e)
{
    this.detail.Height = 7f;
}

However without any details about your requirements, I am unable to offer any other suggestions.