ZoomEventArgs Class
Provides data for the ViewZoom event.
Namespace CrystalDecisions.Windows.Forms Assembly CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)
Syntax
'Declaration
Public Class ZoomEventArgs
Inherits ViewerEventArgs
public class ZoomEventArgs : ViewerEventArgs
Remarks
The ZoomEventArgs class contains the data related to the ViewZoom event. The ViewZoom event is raised by the CrystalReportViewer control when the zoom level in the CrystalReportViewer control is changed.
Example
The following example gets the details of the Zoom event and creates a new entry in the event log.
'Declaration
Private Sub LogZoomEvent(ByVal source As Object, _
ByVal e As CrystalDecisions.Windows.Forms.ZoomEventArgs) Handles _
CrystalReportViewer.ViewZoom
Dim eventLog As New EventLog("event.log")
Dim eventMsg As String = _
"Zoom event:" & vbCrLf & _
"CurrentZoomFactor: " & e.CurrentZoomFactor() & vbCrLf & _
"NewZoomFactor: " & e.NewZoomFactor()
eventLog.WriteEntry(eventMsg)
e.Handled = False
End Sub
private void LogZoomEvent(Object source,
CrystalDecisions.Windows.Forms.ZoomEventArgs e)
{
System.Diagnostics.EventLog eventLog =
new System.Diagnostics.EventLog("event.log");
string eventMsg =
"Zoom event:" + "\n" +
"CurrentZoomFactor: " + e.CurrentZoomFactor + "\n" +
"NewZoomFactor: " + e.NewZoomFactor;
eventLog.WriteEntry(eventMsg);
e.Handled = false;
}
Inheritance Hierarchy
Object
EventArgs
ViewerEventArgs
ZoomEventArgs
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports for Visual Studio .NET 2002
See Also
Reference
ZoomEventArgs Members
CrystalDecisions.Windows.Forms Namespace