Share via


ReportPartBookmarkNavigationEventArgs Class

Provides data for the ReportPartBookMarkNavigation event.

Namespace CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)

Syntax

'Declaration
Public Class ReportPartBookmarkNavigationEventArgs
    Inherits ViewerEventArgs
public class ReportPartBookmarkNavigationEventArgs : ViewerEventArgs

Example

The following example logs the ReportPartBookmarkNavigation event of the report.

'Declaration

      Private Sub LogReportPartBookmarkNavigationEvent(ByVal source As Object, _
        ByVal e As CrystalDecisions.Web.ReportPartBookmarkNavigationEventArgs) Handles _
          CrystalReportPartsViewer.ReportPartBookmarkNavigation
        Dim eventLog As New EventLog("event.log")
        Dim eventMsg As String = _
        "ReportPartBookmarkNavigation event:" & vbCrLf & _
        "NavigationResult.Page Number: " & e.NavigationResult.PageNumber & vbCrLf & _
        "NavigationResult.SectionNumber: " & e.NavigationResult.SectionNumber & vbCrLf & _
        "ReportPartBookmark.ReportUri: " & e.ReportPartBookmark.ReportUri
        eventLog.WriteEntry(eventMsg)
        e.Handled = False
      End Sub
      private void LogReportPartBookmarkNavigationEvent(Object source, 
        CrystalDecisions.Web.ReportPartBookmarkNavigationEventArgs e)
      {
        System.Diagnostics.EventLog eventLog = 
          new System.Diagnostics.EventLog("event.log");
        string eventMsg = 
          "ReportPartBookmarkNavigation event:" + "\n" +
          "NavigationResult.Page Number: " + e.NavigationResult.PageNumber + "\n" +
          "NavigationResult.SectionNumber: " + e.NavigationResult.SectionNumber + "\n" +
          "ReportPartBookmark.ReportUri: " + e.ReportPartBookmark.ReportUri;
        eventLog.WriteEntry(eventMsg);
        e.Handled = false;
      }

Inheritance Hierarchy

Object
   EventArgs
      ViewerEventArgs
         ReportPartBookmarkNavigationEventArgs

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports .NET 9

See Also

Reference

ReportPartBookmarkNavigationEventArgs Members
CrystalDecisions.Web Namespace