Share via


LocalReport.LoadSubreportDefinition Method (String, TextReader)

Loads a subreport definition using a TextReader.

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

Syntax

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

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

Parameters

  • reportName
    The path and file name of the subreport definition.
  • report
    A TextReader object that will contain the report definition language (RDL) 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 report definitions for subreports.

See Also

Reference

LocalReport Class
LocalReport Members
Microsoft.Reporting.WinForms Namespace