Back to Devexpress

WebDocumentViewerExportSettings.UseAsynchronousExport Property

xtrareports-devexpress-dot-xtrareports-dot-web-dot-webdocumentviewer-dot-webdocumentviewerexportsettings.md

latest3.6 KB
Original Source

WebDocumentViewerExportSettings.UseAsynchronousExport Property

Allows you to export documents asynchronously.

Namespace : DevExpress.XtraReports.Web.WebDocumentViewer

Assembly : DevExpress.XtraReports.v25.2.Web.WebForms.dll

NuGet Package : DevExpress.Web.Reporting

Declaration

csharp
[DefaultValue(true)]
public bool UseAsynchronousExport { get; set; }
vb
<DefaultValue(True)>
Public Property UseAsynchronousExport As Boolean

Property Value

TypeDefaultDescription
Booleantrue

True to perform export operations asynchronously; false to export documents in the same UI thread.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to UseAsynchronousExport
ASP.NET MVC ExtensionsWebDocumentViewerSettings

.SettingsExport .UseAsynchronousExport

| | .NET Reporting Tools | ASPxWebDocumentViewer |

.SettingsExport .UseAsynchronousExport

| | ReportPreviewSettings |

.SettingsExport .UseAsynchronousExport

|

Remarks

When the Document Viewer exports a document asynchronously, it opens a new browser page (tab) with a progress indicator:

Code Examples

ASP.NET Web Forms

aspx
<dx:ASPxWebDocumentViewer ClientInstanceName="documentViewer" 
    ID="ASPxWebDocumentViewer1" runat="server">
    <SettingsExport UseAsynchronousExport="true" />
</dx:ASPxWebDocumentViewer>
aspx
<dx:ASPxReportDesigner EnableRichTextEditor="False" ID="ASPxReportDesigner1" runat="server">
    <SettingsReportPreview>
            <SettingsExport UseAsynchronousExport="true" />
    </SettingsReportPreview>
</dx:ASPxReportDesigner>

ASP.NET MVC

cshtml
@Html.DevExpress().WebDocumentViewer(settings =>
{
    settings.Name = "WebDocumentViewer1";
    settings.SettingsExport.UseAsynchronousExport = true;
}).Bind("TestReport").GetHtml()
cshtml
@Html.DevExpress().ReportDesigner(settings => {
    settings.Name = "ReportDesigner1";
    settings.SettingsReportPreview.SettingsExport.UseAsynchronousExport = true;
}).BindToUrl("TestReport").GetHtml()

See Also

WebDocumentViewerExportSettings Class

WebDocumentViewerExportSettings Members

DevExpress.XtraReports.Web.WebDocumentViewer Namespace