Skip to main content
All docs
V18.2

ASPxClientDocumentViewer Class

The client-side equivalent of the ASPxDocumentViewer control.

Namespace: DevExpress.XtraReports.Web.Scripts

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

Declaration

public class ASPxClientDocumentViewer :
    ASPxClientControl

The following members return ASPxClientDocumentViewer objects:

Remarks

The ASPxDocumentViewer control provides an older version of a Document Viewer. To take advantage of HTML5/JS technology, consider using the HTML5 Document Viewer instead.

Example

The following code illustrates how to access a document viewer on the client.

<dx:ASPxDocumentViewer ID="DocumentViewer1" runat="server"
    ReportName="WebApplication2.XtraReport1"
    ClientInstanceName="documentViewer1">
        <ClientSideEvents PageLoad="function(s, e) {
        var nextpage = e.PageIndex + 1 < e.PageCount ? e.PageIndex + 1 : 0;
        setTimeout('switchPage(' + nextpage + ')', 5000);
        }" />
</dx:ASPxDocumentViewer>

<script language="javascript" type="text/javascript">
    function switchPage(nextPage) {
        documentViewer1.GotoPage(nextPage);
    }
</script>

Inheritance

Object
DevExpress.Web.Scripts.JavaScriptObject
DevExpress.Web.Scripts.ASPxClientControlBase
DevExpress.Web.Scripts.ASPxClientControl
ASPxClientDocumentViewer
See Also