HOWTO: How Can I Set the Zoom Property of the Viewer Control to WholePage or PageWidth?


04-16-2006, 7:58 AM

The ActiveReports Viewer control allows you to set the Zoom property at run time.

The range of valid values is 10 to 800, and the following special codes are also supported.

Value

Zoom

-1

Page Width

-2

Whole Page

Use code like the following to set the Zoom property to Page Width or Whole Page.

‘Page Width
ARViewerCtl.Zoom = -1

‘Whole Page
ARViewerCtl.Zoom = -2