LocalReport.LoadSubreportDefinition 方法

包括受保护的成员
包括继承的成员

加载子报表定义。

重载此成员。有关此成员的完整信息(包括语法、用法和示例),请单击重载列表中的相应名称。

重载列表

  名称 说明
公共方法 LoadSubreportDefinition(String, Stream) 使用 Stream 加载子报告定义。
公共方法 LoadSubreportDefinition(String, TextReader) 使用 TextReader 加载子报告定义。

页首

备注

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 LoadSubreportDefinition, any parameters or credentials that you have set previously will be cleared.

示例

For a code sample, please see SubreportProcessing.

请参阅

参考

LocalReport 类

Microsoft.Reporting.WebForms 命名空间