ActiveReports 9
AddBookmark Method (Section)
Example 

Adds a bookmark in the report's table of contents.  The bookmark will position the view at the start of the section if the bookmark is added in the section's Format event.
Overload List
OverloadDescription
AddBookmarkAdds a bookmark in the report's table of contents. The bookmark will position the view at the start of the section if the bookmark is added in the section's Format event. Bookmark text to be displayed in the table of contents treeview.
 
Remarks

This method is used while the report is running.  The method should be called in either the section's Format or BeforePrint events.

Calling this method in the Format event of the section creates a bookmark at the top of the section.  Calling the method in the BeforePrint event of the section creates a bookmark at the bottom of the section.

Example
private void Detail_Format(object sender, System.EventArgs eArgs)
{    
    Detail.AddBookmark(txtCategoryName.Text + "\\" + txtProductName.Text);
}
Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format    
    Me.Detail.AddBookmark(txtCategoryName.Text + "\" + txtProductName.Text)
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

Section Class
Section Members

How To

Add Bookmarks

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum