ActiveReports.Viewer3 Request technical support
PageNumber Property
See Also  Example


Gets or sets the page number to which the bookmark was added.

Syntax

Visual Basic (Declaration) 
Public Property PageNumber As Integer
Visual Basic (Usage)Copy Code
Dim instance As Bookmark
Dim value As Integer
 
instance.PageNumber = value
 
value = instance.PageNumber
C# 
public int PageNumber {get; set;}

Return Value

Integer.

Example

C#Copy Code
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.");
}
Visual BasicCopy Code
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
    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.")
End Sub

See Also