Condividi tramite


Metodo LocalReport.LoadSubreportDefinition (String, TextReader)

Carica una definizione del sottoreport usando un oggetto TextReader.

Spazio dei nomi:  Microsoft.Reporting.WebForms
Assembly:  Microsoft.ReportViewer.WebForms (in Microsoft.ReportViewer.WebForms.dll)

Sintassi

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

Parametri

  • reportName
    Tipo: String
    Percorso e nome di file della definizione del sottoreport.
  • report
    Tipo: TextReader
    Oggetto TextReader che conterrà il file RDL (Report Definition Language) per il sottoreport.

Note

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.

Vedere anche

Riferimenti

LocalReport Classe

Overload LoadSubreportDefinition

Spazio dei nomi Microsoft.Reporting.WebForms