ActiveReports 6 Online Help
Label Property (Bookmark)
Example 

Gets or sets the caption of the bookmark.
Syntax
'Declaration
 
Public Property Label As String
public string Label {get; set;}

Property Value

String.
Remarks

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".

Example
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
Requirements

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

See Also

Reference

Bookmark Class
Bookmark Members

Send Feedback