LocalReport.LoadSubreportDefinition 方法 (String, TextReader)

使用 TextReader 加载子报告定义。

命名空间:  Microsoft.Reporting.WebForms
程序集:  Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)

语法

声明
Public Sub LoadSubreportDefinition ( _
    reportName As String, _
    report As TextReader _
)
public void LoadSubreportDefinition(
    string reportName,
    TextReader report
)
public:
void LoadSubreportDefinition(
    String^ reportName, 
    TextReader^ report
)
member LoadSubreportDefinition : 
        reportName:string * 
        report:TextReader -> unit 
public function LoadSubreportDefinition(
    reportName : String, 
    report : TextReader
)

参数

  • reportName
    类型:String
    子报表定义的路径和文件名。
  • report
    类型:TextReader
    一个将包含子报告的报告定义语言 (RDL) 的 TextReader 对象。

备注

The ReportViewer control requires the report definitions for all subreports be available 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 can be used to load report definitions for subreports.

请参阅

参考

LocalReport 类

LoadSubreportDefinition 重载

Microsoft.Reporting.WebForms 命名空间