Share via


CrystalReportViewer.Zoom Method

Changes the magnification level of the CrystalReportViewer control.

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

Syntax

'Declaration
Public Overrideable Sub Zoom ( _
    ByVal zoomFactor As Integer _   
) 
public virtual void Zoom (
    int zoomFactor
)

Parameters

  • zoomFactor
    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 shows how to zoom the report to a given scale.

'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.Web Namespace