Report Authors / Report Controls / Report Controls in Page/RDLX Report / Subreport
Subreport

The Subreport control is a placeholder for data from a separate report. In ActiveReports, for better performance, we recommend using data regions instead of Subreport controls wherever possible. The reason is that the report server must process every instance of each subreport, which can become burdensome in very large reports with a large number of subreports processed many times per report. Using data regions to display separate groups of data can be much more efficient in such reports. For more information, see Report Controls.

You can also pass parameters to the subreport from the main report so that data related to the main report displays in each instance of the subreport.

Note:
  • A Page report can use an RDLX report as the target subreport.
  • You cannot use a Section report as the target of a Subreport in a Page/RDLX report.

Subreports make sense when you need to nest groups of data from different data sources within a single data region, or when you can reuse a subreport in a number of reports. Here are some things to keep in mind while designing subreports.

Subreport Dialog Properties

With the control selected on the report, in the Commands section at the bottom of the Properties window, you can click the Property dialog command to open the dialog.

Name: Enter a name for the subreport that is unique within the report. This name can be called in code. You can only use underscore (_) as a special character in the Name field. Other special characters such as period (.), space ( ), forward slash (/), back slash (\), exclamation (!), and hyphen (-) are not supported.

Tooltip: A textual label for the report item used to include TITLE or ALT attributes in HTML reports.

Subreport: Select the <From File...> option to open the Open dialog, and then select a report to display within the Subreport control.      

Use this report’s theme when rendering subreport: Select this check box to have the subreport automatically use the same theme as the hosting report.

Use this report’s stylesheet for the subreport:  Select this checkbox to have the subreport use the same stylesheet as the parent report.

See Also