Skip to main content
All docs
V24.2

ReportStorageWebExtension.SetNewDataAsync(XtraReport, String) Method

Stores the specified report using a new URL (i.e., saves new reports only).

Namespace: DevExpress.XtraReports.Web.Extensions

Assembly: DevExpress.XtraReports.v24.2.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

Declaration

public virtual Task<string> SetNewDataAsync(
    XtraReport report,
    string defaultUrl
)

Parameters

Name Type Description
report XtraReport

An XtraReport object.

defaultUrl String

A String value specifying the default URL.

Returns

Type Description
Task<String>

A task that returns the report’s URL

Remarks

In the SetNewData method implementation, you can validate and correct the specified URL, and return the resulting URL used to save a report in your storage.

The SetNewDataAsync method is called when the application uses an asynchronous engine. To enable an asynchronous engine, call one of the following methods at the application startup:

ASP.NET MVC ASP.NET Core
DefaultWebDocumentViewerContainer.UseAsyncEngine, DefaultReportDesignerContainer.UseAsyncEngine ReportingConfigurationBuilder.UseAsyncEngine
See Also