Share via


LocalReport.LoadSubreportDefinition Method (String, Stream)

 

Loads a subreport definition using a Stream.

Namespace:   Microsoft.Reporting.WinForms
Assembly:  Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)

Syntax

public void LoadSubreportDefinition(
    string reportName,
    Stream report
)
public:
void LoadSubreportDefinition(
    String^ reportName,
    Stream^ report
)
member LoadSubreportDefinition : 
        reportName:string *
        report:Stream -> unit
Public Sub LoadSubreportDefinition (
    reportName As String,
    report As Stream
)

Parameters

  • reportName
    Type: System.String

    The path and file name of the subreport definition.

  • report
    Type: System.IO.Stream

    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 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.

See Also

LoadSubreportDefinition Overload
LocalReport Class
Microsoft.Reporting.WinForms Namespace

Return to top