ReportViewer.ZoomMode Property
Gets or sets the zoom mode of the control.
Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)
Syntax
'Declaration
<DefaultValueAttribute(ZoomMode.Percent)> _
<WebBrowsableAttribute(True)> _
<CategoryAttribute("Appearance")> _
Public Property ZoomMode As ZoomMode
'Usage
Dim instance As ReportViewer
Dim value As ZoomMode
value = instance.ZoomMode
instance.ZoomMode = value
[DefaultValueAttribute(ZoomMode.Percent)]
[WebBrowsableAttribute(true)]
[CategoryAttribute("Appearance")]
public ZoomMode ZoomMode { get; set; }
[DefaultValueAttribute(ZoomMode::Percent)]
[WebBrowsableAttribute(true)]
[CategoryAttribute(L"Appearance")]
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.WebForms Namespace