ReportViewer.ZoomMode Property

Gets or sets the zoom mode of the control.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)

Syntax

'Declaration
<CategoryAttribute("Appearance")> _
<DefaultValueAttribute(ZoomMode.Percent)> _
Public Property ZoomMode As ZoomMode
'Usage
Dim instance As ReportViewer
Dim value As ZoomMode

value = instance.ZoomMode

instance.ZoomMode = value
[CategoryAttribute("Appearance")] 
[DefaultValueAttribute(ZoomMode.Percent)] 
public ZoomMode ZoomMode { get; set; }
[CategoryAttribute(L"Appearance")] 
[DefaultValueAttribute(ZoomMode::Percent)] 
public:
property ZoomMode ZoomMode {
    ZoomMode get ();
    void set (ZoomMode value);
}
/** @property */
public ZoomMode get_ZoomMode ()

/** @property */
public void set_ZoomMode (ZoomMode value)
public function get ZoomMode () : ZoomMode

public function set ZoomMode (value : ZoomMode)

Property Value

A ZoomMode enumerator value indicating the zoom mode of the control. The default value is 100%.

Remarks

The Zoom drop-down list contains the following options: 500%, 200%, 150%, 100%, 75%, 50%, 25%, Page Width, and Whole Page. In Normal mode, the default option is 100%. In Print Preview mode, the default option is Whole Page.

When the control is in Print Preview mode, the Page Width and Whole Page options use the dimensions of the physical page to calculate the zoom factor.

When the control is not in Print Preview mode, the Page Width and Whole Page options use the dimensions of the logical page to calculate the zoom factor.

See Also

Reference

ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WinForms Namespace