ActiveReports 6 Online Help
Zoom Property (ReportViewerObject)
Example 

Gets or sets the viewer's zoom level.
Syntax
'Declaration
 
Public Property Zoom As Single
public float Zoom {get; set;}

Property Value

A float value. The valid range is from 0.1 to 8.0 (0.1=10%, 8.0=800%) or -1 for Fit Page Width and -2 for Fit Whole Page. The default value is 1 (100%).
Remarks
Values from 0.1 to 8.0, -1, and -2 can only be set at run time.
Example
This snippet displays the whole page in the viewer.
private void arv_Load(object sender, System.EventArgs e)
{
    rptDD rpt = new rptDD();
    rpt.Run();
    arv.Document = rpt.Document;
    arv.ReportViewer.Zoom = -2;
}
Private Sub arv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load
    Dim rpt As New rptDD
    rpt.Run()
    arv.Document = rpt.Document
    arv.ReportViewer.Zoom = -2
End Sub
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ReportViewerObject Class
ReportViewerObject Members

Send Feedback