LocalReport.LoadSubreportDefinition, méthode (String, TextReader)
Charge une définition de sous-rapport en utilisant un TextReader.
Espace de noms : Microsoft.Reporting.WinForms
Assembly : Microsoft.ReportViewer.WinForms (dans Microsoft.ReportViewer.WinForms.dll)
Syntaxe
'Déclaration
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
)
Paramètres
- reportName
Type : String
Chemin d'accès et nom de fichier de la définition de sous-rapport.
- report
Type : TextReader
Objet TextReader destiné à contenir le langage de définition de rapport (RDL) du sous-rapport.
Notes
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.