GrapeCity.ActiveReports.Viewer.Win.v9 Assembly > GrapeCity.ActiveReports.Viewer.Win Namespace > Viewer Class : TableOfContentsClick Event |
'Declaration Public Event TableOfContentsClick As System.EventHandler
public event System.EventHandler TableOfContentsClick
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
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