Share via


NavigateEventArgs Class

Provides data for the Navigate event.

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

Syntax

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

Remarks

The NavigateEventArgs class contains the data related to the Navigate event. The CrystalReportViewer raises the Navigate event.

Example

The following example logs the Navigate event of the report.

'Declaration

      Private Sub LogNavigateEvent(ByVal source As Object, _
        ByVal e As CrystalDecisions.Web.NavigateEventArgs) Handles _
          CrystalReportViewer.Navigate
        Dim eventLog As New EventLog("event.log")
        Dim eventMsg As String = _
        "Navigate event:" & vbCrLf & _
        "GroupPath: " & e.GroupPath & vbCrLf & _
        "CurrentPageNumber: " & e.CurrentPageNumber & vbCrLf & _
        "NewPageNumber: " & e.NewPageNumber
        eventLog.WriteEntry(eventMsg)
        e.Handled = False
      End Sub
      private void LogNavigateEvent(Object source, 
        CrystalDecisions.Web.NavigateEventArgs e)
      {
        System.Diagnostics.EventLog eventLog = 
        new System.Diagnostics.EventLog("event.log");
        string eventMsg =
          "Navigate event:" + "\n" +
          "GroupPath: " + e.GroupPath + "\n" +
          "CurrentPageNumber: " + e.CurrentPageNumber + "\n" +
          "NewPageNumber: " + e.NewPageNumber;
        eventLog.WriteEntry(eventMsg);
        e.Handled = false;
      }

Inheritance Hierarchy

Object
   EventArgs
      ViewerEventArgs
         NavigateEventArgs

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

NavigateEventArgs Members
CrystalDecisions.Web Namespace