Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Changes the magnification level of the CrystalReportViewer control.
Namespace CrystalDecisions.Windows.Forms Assembly CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)
Syntax
'Declaration
Public Overrideable Sub Zoom ( _
ByVal ZoomLevel As Integer _
)
public virtual void Zoom (
int ZoomLevel
)
Parameters
- ZoomLevel
Indicates the percentage at which to magnify the CrystalReportViewer.
Remarks
Use this method to change the zoom level of the CrystalReportViewer control. Use 1 to fit the entire width of the page (but not the entire page) or 2 to fit the entire page in the window.
Example
This example will adjust the CrystalReportViewer to display the report at the specified zoom level.
'Declaration
Private Sub ZoomReport(ByVal myZoomScale As Integer)
CrystalReportViewer.Zoom(myZoomScale)
End Sub
private void ZoomReport(int zoomScale)
{
crystalReportViewer.Zoom(zoomScale);
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports for Visual Studio .NET 2002
See Also
Reference
CrystalReportViewer Class
CrystalReportViewer Members
CrystalDecisions.Windows.Forms Namespace