NavigateEventArgs Class
Provides Data for the Navigate event.
Namespace CrystalDecisions.Windows.Forms Assembly CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.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 Navigate event is raised by the CrystalReportViewer control when a user navigates through a report.
Example
The following example gets the details of the Navigate event and creates a new entry in the event log.
'Declaration
Private Sub LogNavigateEvent(ByVal source As Object, _
ByVal e As CrystalDecisions.Windows.Forms.NavigateEventArgs) Handles _
CrystalReportViewer.Navigate
Dim eventLog As New EventLog("event.log")
Dim eventMsg As String = _
"Navigate event:" & vbCrLf & _
"CurrentPageNumber: " & e.CurrentPageNumber() & vbCrLf & _
"NewPageNumber: " & e.NewPageNumber()
eventLog.WriteEntry(eventMsg)
e.Handled = False
End Sub
private void LogNavigateEvent(Object source,
CrystalDecisions.Windows.Forms.NavigateEventArgs e)
{
System.Diagnostics.EventLog eventLog =
new System.Diagnostics.EventLog("event.log");
string eventMsg =
"Navigate event:" + "\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.Windows.Forms Namespace