Skip to main content
All docs
V18.2

ASPxClientReportPreview.zoom Property

Zooms the Document Viewer’s current document.

Namespace: DevExpress.XtraReports.Web.Scripts

Assembly: DevExpress.XtraReports.v18.2.Web.Scripts.dll

Declaration

public KnockoutObservable<double> zoom { get; }

Property Value

Type Description
KnockoutObservable<Double>

A knockout observable object that specifies the zoom factor.

Remarks

Call the zoom method to zoom a document by a specific zoom factor passed as a parameter.

You can also use the following values of the DevExpress.Report.Preview.ZoomAutoBy object as a function parameter: None, WholePage and PageWidth.

<script>
    function Init(s, e) {
        s.GetReportPreview().zoom(0.9);
        //s.GetReportPreview().zoom(DevExpress.Report.Preview.ZoomAutoBy.PageWidth);
    }
</script>

<dx:ASPxWebDocumentViewer ID="ASPxWebDocumentViewer1" runat="server" ReportSourceId="DXWebApplication1.XtraReport1">
    <ClientSideEvents Init="Init"/>
</dx:ASPxWebDocumentViewer>
See Also