Xtrareports Bands Size and Location

3.5k views Asked by At

How could I set at runtime my bands size and location ?

Bands.Add(_reportHeader);
_reportHeader.Height = 300;
Bands.Add(_pageHeader);
_pageHeader.LocationF = new PointF(0, _reportHeader.HeightF);

When I do this, the heightf and locationf of both bands dont change, they keep constant.

1

There are 1 answers

0
Paulo Balbino On BEST ANSWER

You dont need to worry about the automatic size, since the bottom most control will say what size the band will have. For automatic sizing, just do like this:

_reportHeader.HeightF = 0f;
Bands.Add(_reportHeader);
_pageHeader.HeightF = 0f;
Bands.Add(_pageHeader);