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
Public Class ASPxClientDocumentViewer
    Inherits ASPxClientControl

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.

Examples

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
ASPxClientDocumentViewer

See Also