Back to Devexpress

ReportStorageWebExtension.SetNewData(XtraReport, String) Method

xtrareports-devexpress-dot-xtrareports-dot-web-dot-extensions-dot-reportstoragewebextension-dot-setnewdata-x28-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-system-dot-string-x29.md

latest4.3 KB
Original Source

ReportStorageWebExtension.SetNewData(XtraReport, String) Method

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

Namespace : DevExpress.XtraReports.Web.Extensions

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

NuGet Package : DevExpress.Web.Reporting.Common

Declaration

csharp
public virtual string SetNewData(
    XtraReport report,
    string defaultUrl
)
vb
Public Overridable Function SetNewData(
    report As XtraReport,
    defaultUrl As String
) As String

Parameters

NameTypeDescription
reportXtraReport

An XtraReport object.

| | defaultUrl | String |

A String value specifying the default URL.

|

Returns

TypeDescription
String

A String value that is 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.

For a code example, create a new Web project from the DevExpress Visual Studio template and review the code for the CustomReportStorageWebExtension class in the Services folder.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SetNewData(XtraReport, String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-aspnet-core-handle-server-side-errors/CS/DXAspNetCoreApp/Services/ReportStorageWebExtension1.cs#L57

csharp
public override string SetNewData(XtraReport report, string defaultUrl) {
    return base.SetNewData(report, defaultUrl);
}

reporting-web-forms-handle-server-side-errors/CS/DXWebApplication1/ReportStorageWebExtension.cs#L54

csharp
public override string SetNewData(XtraReport report, string defaultUrl) {
    return base.SetNewData(report, defaultUrl);
}

reporting-web-forms-handle-server-side-errors/VB/DXWebApplication1/ReportStorageWebExtension.vb#L55

vb
Public Overrides Function SetNewData(ByVal report As XtraReport, ByVal defaultUrl As String) As String
    Return MyBase.SetNewData(report, defaultUrl)
End Function

See Also

Add a Report Storage (ASP.NET Web Forms)

ReportStorageWebExtension Class

ReportStorageWebExtension Members

DevExpress.XtraReports.Web.Extensions Namespace