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 example, see SubreportProcessing.