GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports Namespace > SectionReport Class > LoadLayout Method : LoadLayout(XmlReader) Method |
'Declaration Public Overloads Sub LoadLayout( _ ByVal reader As System.Xml.XmlReader _ )
public void LoadLayout( System.Xml.XmlReader reader )
GrapeCity.ActiveReports.ActiveReport report = new GrapeCity.ActiveReports.ActiveReport(); System.Xml.XmlTextReader xtr = new System.Xml.XmlTextReader("\\report.rpx"); report.LoadLayout(xtr); xtr.Close(); // reading from XML DOM (XmlNode) using (System.Xml.XmlNodeReader reader = new System.Xml.XmlNodeReader(node)) { report.LoadLayout(reader); } // reading from stream using (System.Xml.XmlReader reader = System.Xml.XmlReader.Create(inputStream)) { report.LoadLayout(reader); } // reading from string string layoutContent = "<ActiveReports>... ...</ActiveReports>"; using (System.Xml.XmlReader reader = System.Xml.XmlReader.Create(new System.IO.StringReader(layoutContent))) { report.LoadLayout(reader); }
Dim report As New GrapeCity.ActiveReports.ActiveReport() Dim xtr As New System.Xml.XmlTextReader("\report.rpx") report.LoadLayout(xtr) xtr.Close() ' reading from XML DOM (XmlNode) Using reader As New System.Xml.XmlNodeReader(node) report.LoadLayout(reader) End Using ' reading from stream Using reader As New System.Xml.XmlTextReader(inputStream) report.LoadLayout(reader) End Using ' reading from string Dim layoutContent As String = "<ActiveReports>... ...</ActiveReports>" Using reader As New System.Xml.XmlTextReader(New System.IO.StringReader(layoutContent)) report.LoadLayout(reader) End Using