See Also

Bookmark Class  | Bookmark Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Label Property

Gets or sets the caption of the bookmark.

[Visual Basic]
Public Property Label As String
[C#]
public string Label {get; set;}

Return Type

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

[C#] 

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;  
    } 
}

[Visual Basic] 

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

See Also

Bookmark Class  | Bookmark Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.