ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer Class / TableOfContentsClick Event
Example

TableOfContentsClick Event
Occurs when the user clicks an item in the table of contents treeview.
Syntax
'Declaration
 
Public Event TableOfContentsClick As EventHandler
 
Remarks
The event handler receives an System.EventArgs instance, which does not provide event data but indicates that the event has occurred.
Example
private void arv_TableOfContentsClick(object sender, System.EventArgs e)
{
    int toc;
    toc = arv.Document.Bookmarks.CurrentBookmark;
    MessageBox.Show("Boomark is on page" + arv.Document.Bookmarks[toc].PageNumber.ToString + "at a distance of" + arv.Document.Bookmarks[toc].Offset.ToString + "inches from the top.");
}
Private Sub arv_TableOfContentsClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles arv.TableOfContentsClick
    Dim toc As Integer
    toc = arv.Document.Bookmarks.CurrentBookmark
    MessageBox.Show("Boomark is on page" & arv.Document.Bookmarks(toc).PageNumber.ToString & "at a distance of" & arv.Document.Bookmarks(toc).Offset.ToString & "inches from the top.")
End Sub
See Also