ActiveReports 9 > ActiveReports User Guide > How To > Page Report/RDL Report How To > Work with Report Controls and Data Regions > Set FixedSize of a Data Region |
FixedSize property of a Page Report is used to set the exact height or width (or both) that the data region will occupy at runtime. Using this property, you can control the number of records that are displayed on each page.
In case there are more records to display than what FixedSize can accommodate, the remaining records get displayed on the next page. However, in case there is an OverflowPlaceHolder control bound to a data region on the same page, the remaining records are displayed at the location where the OverflowPlaceHolder control is placed. When you link a data region to an OverflowPlaceHolder, this control gets its Size property value from the Size of the data region it is linked with. However, it is also possible to change the Size (Height and Width) property values of OverflowPlaceHolder control based on the requirement of your Page Report.
Caution: The Size of an OverflowPlaceHolder cannot be changed to a value which is less than the Size of a data region it is linked with. |
The significance of the FixedHeight and FixedWidth property depends on the data region that is being used. For example, in case of Table data region, only the FixedHeight property holds importance as the Table control always grows vertically to accommodate excessive data, while in case of Matrix data region both FixedHeight and FixedWidth properties are important as the control expands both vertically and horizontally to fit excessive data.
The table below show the data regions that contains the FixedSize property and their support for FixedHeight and FixedWidth properties:
Data Region | Supported Property |
---|---|
Table | FixedHeight |
Matrix | FixedHeight and FixedWidth both |
List | FixedHeight |
BandedList | FixedHeight |
Calendar | FixedHeight |
You can use the Properties Window to set the FixedHeight and FixedWidth properties of a data region manually, or use the resize handlers that appears around the data region to set the FixedSize.
Follow these steps to set FixedSize through the Properties window:
Follow these steps to set FixedSize using the resize handlers: