ActiveReports.Document Assembly > DataDynamics.ActiveReports.Document Namespace > Bookmark Class : Label Property |
The name can be a simple string or a path to create a hierarchy. For example, "Entry 1" is a node with no parent, "Entry 1\Child 1.1" is a bookmark node with a caption "Child 1.1" whose parent is "Entry 1".
Private void arv_Load(object sender, System.EventArgs e) { rptDocument rpt = New rptDocument(); rpt.Run(); arv.Document=rpt.Document; int i; For (i = 1; i <= arv.Document.Bookmarks.Count; i++) { arv.Document.Bookmarks[i - 1].Label = "Bookmark number " + i; } }
Private Sub arv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load Dim rpt As New rptDocument rpt.Run() arv.Document = rpt.Document Dim i As Integer For i = 1 To arv.Document.Bookmarks.Count arv.Document.Bookmarks(i - 1).Label = "Bookmark number " & i Next i End Sub
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