GrapeCity.ActiveReports.v9 Assembly > GrapeCity.ActiveReports.Data Namespace > XMLDataSource Class : CurrentPosition Property |
'Declaration Public ReadOnly Property CurrentPosition As System.Integer
public System.int CurrentPosition {get;}
A long value that represents the current node in the NodeList.
GrapeCity.ActiveReports.Data.XMLDataSource xDS = new GrapeCity.ActiveReports.Data.XMLDataSource(); SectionReport1 rpt = new SectionReport1(); xDS.ValidateOnParse = true; xDS.FileURL = System.Windows.Forms.Application.StartupPath + " \\customer.xml"; xDS.RecordsetPattern = "//ITEM"; xDS.NodeList = (System.Xml.XmlNodeList)ds.Field("ITEM",true); this.Label1.Text = xDS.CurrentPosition; Console.WriteLine(xDS.Count.ToString()); if (xDS.BOF && xDS.EOF) { return; }
Dim xDS As New GrapeCity.ActiveReports.Data.XMLDataSource() Dim rpt As New SectionReport1() xDS.ValidateOnParse = True xDS.FileURL = System.Windows.Forms.Application.StartupPath + " \\customer.xml" xDS.RecordsetPattern = "//ITEM" xDS.NodeList = xDS.Field("ITEM", True) Me.Label1.Text = xDS.CurrentPosition Console.WriteLine(xDS.Count.ToString()) If xDS.BOF & xDS.EOF Then Exit Sub End If
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2