ActiveReports 9
AddBookmark Method (Page)
Example 

Adds a bookmark to the page at the specified offset.
Overload List
OverloadDescription
AddBookmarkSummary description for AddBookmark.  
Remarks
Bookmarks appear in the viewer's table of contents.
Example
private void Detail_Format(object sender, System.EventArgs eArgs)
{
    for(int i = 0; i<Document.Pages.Count;i++)
    {
        this.Document.Pages[i].AddBookmark("New Bookmark", 25);
    }
}
Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
    Dim i As Integer
    Try
        For i = 0 To Me.Document.Pages.Count - 1
            Me.Document.Pages(1).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

Reference

Page Class
Page Members

How To

Add Bookmarks

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum