See Also

Bookmark Members  | DataDynamics.ActiveReports.Document Namespace  | Bookmarks collection

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Bookmark Class

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.

For a list of all members of this type, see Bookmark members.

Inheritance Hierarchy

System.Object
   DataDynamics.ActiveReports.Document.Bookmark

Syntax

[Visual Basic]
Public Class Bookmark
[C#]
public 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

[C#] 

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;  
    } 
}

[Visual Basic] 

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

See Also

Bookmark Members  | DataDynamics.ActiveReports.Document Namespace  | Bookmarks collection

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.