本文為機器翻譯文章。如需檢視英文版,請選取 [原文] 核取方塊。您也可以將滑鼠指標移到文字上,即可在快顯視窗顯示英文原文。
譯文
原文

LocalReport.LoadSubreportDefinition 方法

 

載入子報表定義。

命名空間:   Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)

名稱描述
System_CAPS_pubmethodLoadSubreportDefinition(String, Stream)

使用 Stream 載入子報表定義。

System_CAPS_pubmethodLoadSubreportDefinition(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 M:Microsoft.Reporting.WebForms.LocalReport.LoadSubreportDefinition, any parameters or credentials that you have set previously will be cleared.

For a code sample, please see SubreportProcessing.

回到頁首
顯示: