LocalReport.LoadSubreportDefinition 方法 (String, Stream)
使用 Stream 載入子報表定義。
命名空間: Microsoft.Reporting.WebForms
組件: Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)
語法
'宣告
Public Sub LoadSubreportDefinition ( _
reportName As String, _
report As Stream _
)
public void LoadSubreportDefinition(
string reportName,
Stream report
)
public:
void LoadSubreportDefinition(
String^ reportName,
Stream^ report
)
member LoadSubreportDefinition :
reportName:string *
report:Stream -> unit
public function LoadSubreportDefinition(
reportName : String,
report : Stream
)
參數
- reportName
類型:String
子報表定義的路徑和檔案名稱。
- report
類型:Stream
Stream 類別,包含子報表的報表定義。
備註
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.