Udostępnij za pośrednictwem


Metoda LocalReport.LoadSubreportDefinition —

Uwzględnij chronione elementy członkowskie
Uwzględnij dziedziczone elementy członkowskie

Loads a subreport definition.

Ten element członkowski jest przeciążony. Aby uzyskać pełne informacje dotyczące tego elementu członkowskiego, w tym informacje o jego składni i zastosowaniu oraz odpowiednie przykłady, kliknij nazwę na liście przeciążeń.

Lista przeciążeń

  Nazwa Opis
Metoda publiczna LoadSubreportDefinition(String, Stream) Loads a subreport definition using a Stream.
Metoda publiczna LoadSubreportDefinition(String, TextReader) Loads a subreport definition using a TextReader.

Początek

Uwagi

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

Starting with Visual Studio 2012, if you call LoadSubreportDefinition, any parameters or credentials that you have set previously will be cleared.

Przykłady

Dla przykładu kodu zobacz SubreportProcessing.

Zobacz też

Informacje

LocalReport Klasa

Przestrzeń nazw Microsoft.Reporting.WinForms