ActiveReports 9
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.

Using the FixedSize Property in Data Region

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

Setting FixedSize Property

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:

  1. From the Visual Studio toolbox, drag and drop a data region like List or a Table control onto the design surface.
  2. On the design surface, click the data region to select it and go to the Properties Window.
  3. In the Properties Window, locate and expand the FixedSize property node to assign values for the Height and Width.

Follow these steps to set FixedSize using the resize handlers:

  1. From the Visual Studio toolbox, drag and drop a data region like List or a Table control onto the design surface. Notice the resize handlers that appear around the data region. 
  2. Use mouse to drag the resize handlers to set the FixedSize area of a data region.

 

 


Copyright © 2016 GrapeCity, inc. All rights reserved

Support Forum