ActiveReports 6 Online Help
CurrentBookmark Property
Example 

Returns the index of the currently selected bookmark.
Syntax
'Declaration
 
Public Property CurrentBookmark As Integer
public int CurrentBookmark {get; set;}

Property Value

An integer value that represents the number of bookmark objects in the collection.
Example
private void arv_TableOfContentsClick(object sender, System.EventArgs e)
{
    int toc;
    toc = arv.Document.Bookmarks.CurrentBookmark;
    MessageBox.Show ("You are leaving the bookmark at page " + arv.Document.Bookmarks[toc].PageNumber.ToString() + ", " + arv.Document.Bookmarks[toc].Offset.ToString() + " inches from the top of the page.");
}
Private Sub arv_TableOfContentsClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles arv.TableOfContentsClick
    Dim toc As Integer
    toc = arv.Document.Bookmarks.CurrentBookmark
    MsgBox("You are leaving the bookmark at page " & arv.Document.Bookmarks(toc).PageNumber.ToString & ", " & arv.Document.Bookmarks(toc).Offset.ToString & " inches from the top of the page.")
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

BookmarksCollection Class
BookmarksCollection Members

Send Feedback