LocalReport.LoadSubreportDefinition Method
Loads a subreport definition.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)
Overload List
Name | Description | |
---|---|---|
LoadSubreportDefinition(String, Stream) | Loads a subreport definition using a Stream. |
|
LoadSubreportDefinition(String, TextReader) | Loads a subreport definition using a TextReader. |
Remarks
The ReportViewer control requires the definitions for all subreports before it can process a report. If the local report was loaded from the file system by specifying the ReportPath property or loaded from an embedded resource by specifying the ReportEmbeddedResource property, the ReportViewer control automatically loads the subreports from the file system or embedded resource, respectively. In cases where the local report was loaded from a stream, these methods may be used to load subreport definitions.
Starting with Visual Studio 2012, if you call M:Microsoft.Reporting.WebForms.LocalReport.LoadSubreportDefinition, any parameters or credentials that you have set previously will be cleared.
Examples
Legacy Code Example
For a code example, see SubreportProcessing.
See Also
LocalReport Class
Microsoft.Reporting.WinForms Namespace
Return to top