ActiveReports 8
AddBookmark(String,Single) Method
See Also  Example
GrapeCity.ActiveReports.Document.v8 Assembly > GrapeCity.ActiveReports.Document.Section Namespace > Page Class : AddBookmark(String,Single) Method

strBookmark
Specifies the name of the bookmark.  You can use backslash "\"  as a path separator to create a hierarchy of bookmarks.
offset
Specifies the location of the bookmark on the page.

Glossary Item Box

Summary description for AddBookmark.

Syntax

Visual Basic (Declaration) 
Public Function AddBookmark( _
   ByVal strBookmark As System.String, _
   ByVal offset As System.Single _
) As System.Integer
C# 
public System.int AddBookmark( 
   System.string strBookmark,
   System.float offset
)

Parameters

strBookmark
Specifies the name of the bookmark.  You can use backslash "\"  as a path separator to create a hierarchy of bookmarks.
offset
Specifies the location of the bookmark on the page.

Example

C#Copy Code
private void SectionReport1_ReportEnd(object sender, System.EventArgs eArgs)
{
    for(int i = 0; i<Document.Pages.Count;i++)
    {
        this.Document.Pages[i].AddBookmark("New Bookmark", 25);
    }
}
Visual BasicCopy Code
Private Sub SectionReport1_ReportEnd(ByVal sender As Object, ByVal e As System.EventArgs) Handles SectionReport1.ReportEnd
    Dim i As Integer
    Try
        For i = 0 To Me.Document.Pages.Count - 1
            Me.Document.Pages(i).AddBookmark("New Bookmark", 8)
        Next
    Catch ex As Exception
    End Try
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