ActiveReports 9
Bookmark Class
Members  Example 

Specifies a named location in the report document or page that can be reached by name using hyperlinks or using the table of contents outline tree.
Object Model
Bookmark Class
Syntax
'Declaration
 
Public NotInheritable Class Bookmark 
public sealed class Bookmark 
Remarks

Bookmarks are added to the report in a section's BeforePrint event using the Section.AddBookmark method.  In addition, bookmarks can be added to any page in the document after the report has completed processing using the Page.AddBookmark method.

Bookmarks are stored within each page; when pages are added to a document the bookmarks are merged with the document's Bookmarks collection.

Example
private void arv_Load(object sender, System.EventArgs e)
{
    rptDocument rpt = new rptDocument();
    rpt.Run();
    arv.Document=rpt.Document;
    int i;
    for (i = 1; i <= arv.Document.Bookmarks.Count; i++) 
    { 
        arv.Document.Bookmarks[i - 1].Label = "Bookmark number " + i; 
    }
}
Private Sub arv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load
    Dim rpt As New rptDocument
    rpt.Run()
    arv.Document = rpt.Document
    Dim i As Integer
    For i = 1 To arv.Document.Bookmarks.Count
        arv.Document.Bookmarks(i - 1).Label = "Bookmark number " & i
    Next i
End Sub
Inheritance Hierarchy

System.Object
   GrapeCity.ActiveReports.Document.Section.Bookmark

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

Bookmark Members
GrapeCity.ActiveReports.Document.Section Namespace
Bookmarks collection

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum