Subreport

The Subreport control allows you to include other reports in your current report.

Subreport

You can click on a subreport to open the report to which it is linked in a new Design Panel.

In the Property Grid, the subreport's properties are divided into the following groups.

Appearance

Property Description
Formatting Rules Opens the Formatting Rules Editor allowing you to choose which rules should be applied to the control during report generation, and define the precedence of the applied rules. To learn more on this, see Conditionally change a control's appearance.

Behavior

Property Description
Can Shrink

Determines whether a subreport's height should be decreased if its contents don't completely fill the control.

Use this property to specify whether the height of the subreport control should be taken into account when generating a report. This may be required, because usually the mutual location of report controls is considered when generating a report document. But, as the subreport control actually represents a report itself, the height of a subreport normally should not be taken into account in the generated report document.

Also, note that there is no Can Grow option for the subreport control, as it always increases its height depending on its contents.

Scripts This property contains events, which you can handle by the required scripts. For more information on scripting, see Handle events via scripts.
Visible Specifies a value indicating whether the current control should be printed (when set to Yes) or hidden (No) on report generation.

Data

Property Description
Report Source

Determines a report to be included as a subreport.

If report classes of the application that displayed the Report Designer are compiled into one assembly, then they are available as items in this combo box.

Report Source Url Defines an URL of a report definition file (*.REPX), to be used as a report source.

Design

Property Description
(Name) Determines a control's name, by which it can be accessed in the Report Explorer, Property Grid or via scripts.

Layout

Property Description
Location Specifies the control's location, in report measurement units.
Size

Specifies the control's size, in report measurement units.

The subreport isn't limited by the visible size of the control. The size of its actual content is taken into account when rendering the subreport on the page. Note that depending on its contents, its width is unlimited and its height is increased.

Snap Line Margin Specifies the margin (in report measurement units), which is to be preserved around the control when it is aligned using Snap Lines, or when other controls are aligned next to it.