Udostępnij za pośrednictwem


LocalReport.LoadSubreportDefinition Method (String, Stream)

Loads a subreport definition using a Stream.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

'Declaration
Public Sub LoadSubreportDefinition ( _
    reportName As String, _
    report As Stream _
)
'Usage
Dim instance As LocalReport
Dim reportName As String
Dim report As Stream

instance.LoadSubreportDefinition(reportName, report)
public void LoadSubreportDefinition (
    string reportName,
    Stream report
)
public:
void LoadSubreportDefinition (
    String^ reportName, 
    Stream^ report
)
public void LoadSubreportDefinition (
    String reportName, 
    Stream report
)
public function LoadSubreportDefinition (
    reportName : String, 
    report : Stream
)

Parameters

  • reportName
    The path and filename of the subreport definition.
  • report
    A Stream class that can be used to read the report definition language (RDL) file for the subreport.

Remarks

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, the ReportViewer control automatically loads the subreports from the file system. In cases where the local report was not loaded from the file system, these methods may be used to load subreport definitions.

See Also

Reference

LocalReport Class
LocalReport Members
Microsoft.Reporting.WebForms Namespace