Skip to main content
A newer version of this page is available. .

Asynchronous Export

The Web Document Viewer can export reports asynchronously (export operations are run in the background).

To switch to the asynchronous export mode, handle the Init client-side event and set the AsyncExportApproach property to true.

In Visual Studio Designer, do the following:

  1. Select the Web Document Viewer control. Switch to the Properties window and click the ellipsis button next to the ClientSideEvents property to invoke the Client-Side Events dialog:

    asynchronous-export-web-document-viewer

  2. In the invoked Client-Side Events dialog, select the Init event handler, and insert the following code:

    DevExpress.Reporting.Viewer.Settings.AsyncExportApproach=true;
    
  3. Run the project, open the page with the Document Viewer and export a document. Export action opens a new page with a progress indicator: