共用方式為


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
    TextReader 物件,包含子報表的報表定義語言 (RDL)。

備註

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 命名空間