ViewerEventArgs Class
Provides data for the CrystalReportViewer control events.
Namespace CrystalDecisions.Windows.Forms Assembly CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)
Syntax
'Declaration
Public Class ViewerEventArgs
Inherits EventArgs
public class ViewerEventArgs : EventArgs
Remarks
This is the base class used for the CrystalReportViewer control events.
Example
The following example gets the details of the CrystalReportViewer event and creates a new entry in the event log.
'Declaration
Private Sub LogViewerEvent(ByVal mySender As Object, ByVal e As ViewerEventArgs) _
Handles WebCrystalReportViewer.ReportRefresh
Dim eventLog As New EventLog("event.log")
Dim eventMsg As String = "Viewer event: " & e.ToString()
e.Handled = False
End Sub
private void LogViewerEvent(Object source, CrystalDecisions.Web.ViewerEventArgs e)
{
System.Diagnostics.EventLog eventLog =
new System.Diagnostics.EventLog("event.log");
String eventMsg = "Viewer event: " + e.ToString();
eventLog.WriteEntry(eventMsg);
e.Handled = false;
}
Inheritance Hierarchy
Object
EventArgs
ViewerEventArgs
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports for Visual Studio .NET 2002
See Also
Reference
ViewerEventArgs Members
CrystalDecisions.Windows.Forms Namespace