GrapeCity.ActiveReports.Document.v9 Assembly > GrapeCity.ActiveReports.Document.Section Namespace > Bookmark Class : Label Property |
'Declaration Public Property Label As System.String
public System.string Label {get; set;}
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 viewer1_Load(object sender, System.EventArgs e) { rptDocument rpt = New rptDocument(); rpt.Run(); viewer1.Document=rpt.Document; int i; For (i = 1; i <= viewer1.Document.Bookmarks.Count; i++) { viewer1.Document.Bookmarks[i - 1].Label = "Bookmark number " + i; } }
Private Sub viewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load Dim rpt As New rptDocument rpt.Run() viewer1.Document = rpt.Document Dim i As Integer For i = 1 To viewer1.Document.Bookmarks.Count viewer1.Document.Bookmarks(i - 1).Label = "Bookmark number " & i Next i End Sub