使用 Stream 加载子报告定义。
命名空间: Microsoft.Reporting.WinForms
程序集: Microsoft.ReportViewer.WinForms(在 Microsoft.ReportViewer.WinForms.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
可用于读取子报告的报告定义语言 (RDL) 文件的 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 report definitions for subreports.