ActiveReports 8
PageNumber Property
See Also  Example
GrapeCity.ActiveReports.Document.v8 Assembly > GrapeCity.ActiveReports.Document.Section Namespace > Bookmark Class : PageNumber Property

Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Property PageNumber As System.Integer
C# 
public System.int PageNumber {get; set;}

Property Value

Integer.

Example

C#Copy Code
private void viewer1_TableOfContentsClick(object sender, System.EventArgs e)
{
    int toc;
    toc = viewer1.Document.Bookmarks.CurrentBookmark;
    MessageBox.Show ("You are leaving the bookmark at page " + viewer1.Document.Bookmarks[toc].PageNumber.ToString() + ", " + viewer1.Document.Bookmarks[toc].Offset.ToString() + " inches from the top of the page.");
}
Visual BasicCopy Code
Private Sub viewer1_TableOfContentsClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles arv.TableOfContentsClick
    Dim toc As Integer
    toc = viewer1.Document.Bookmarks.CurrentBookmark
    MessageBox.Show("You are leaving the bookmark at page " & viewer1.Document.Bookmarks(toc).PageNumber.ToString & ", " & viewer1.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