See Also

ReportViewerObject Class  | ReportViewerObject Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Zoom Property

Gets or sets the viewer's zoom level. 

[Visual Basic]
Public Property Zoom As Single
[C#]
public float Zoom {get; set;}

Return Type

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 of 0 , -1, and -2 can only be set at run time.

Example

This snippet displays the whole page in the viewer.

[C#] 

private void arv_Load(object sender, System.EventArgs e) 

    rptDD rpt = new rptDD(); 
    rpt.Run(); 
    arv.Document = rpt.Document; 
    arv.ReportViewer.Zoom = -2; 
}

[Visual Basic] 

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

See Also

ReportViewerObject Class  | ReportViewerObject Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.