Share via


Binding with the ReportDocument Component

Object Model

This report binding scenario uses ReportDocument (see Report Binding with ReportDocument Object Model).

Location of Reports

Reports are located on the file directory.

Description

The ReportDocument component is located in the Toolbox and provides a GUI-based method to generate class instantiation code for the report in the code-behind class. You can specify a non-embedded report, an embedded report, or a cached embedded report.

Note

The dialog box uses the legacy terms "untyped report" to refer to a non-embedded report and "strongly-typed report" to refer to an embedded report.

Using this dialog box to add ReportDocument as a component causes the ReportDocument class (or the embedded report's wrapper class) to be instantiated within the auto-generated region of the code-behind class. At the same time, an icon appears in the component tray of the IDE to visually represent the instantiated report class.

Note

You do not need to add a ReportDocument component in your project to instantiate the report in the code-behind class. For greater control over your code, it is recommended that you add the class instantiation code manually.

See Also