Udostępnij za pośrednictwem


Metoda LocalReport.LoadSubreportDefinition — (String, TextReader)

Loads a subreport definition using a TextReader.

Przestrzeń nazw:  Microsoft.Reporting.WebForms
Zestaw:  Microsoft.ReportViewer.WebForms (w Microsoft.ReportViewer.WebForms.dll)

Składnia

'Deklaracja
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
)

Parametry

  • reportName
    Typ: String
    The path and filename of the subreport definition.
  • report
    Typ: TextReader
    A TextReader object that will contain the report definition language (RDL) for the subreport.

Uwagi

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.

Zobacz też

Informacje

LocalReport Klasa

Przeciążenie LoadSubreportDefinition

Przestrzeń nazw Microsoft.Reporting.WebForms