ASPxClientWebDocumentViewer.GetReportPreview() Method

Provides access to the report preview.

Namespace: DevExpress.XtraReports.Web.Scripts

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

Declaration

public ASPxClientReportPreview GetReportPreview()
Public Function GetReportPreview As ASPxClientReportPreview

Returns

Type Description
ASPxClientReportPreview

An object that specifies the report preview.

The following code snippet demonstrates how to zoom a previewed document.

<dx:ASPxWebDocumentViewer ID="ASPxWebDocumentViewer1" runat="server" ReportSourceId="DXWebApplication1.XtraReport1">
    <ClientSideEvents Init="function(s, e) { s.GetReportPreview().zoom(0.9); }"/>
</dx:ASPxWebDocumentViewer>

See Also