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
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
public virtual string SetNewData(
XtraReport report,
string defaultUrl
)
Public Overridable Function SetNewData(
report As XtraReport,
defaultUrl As String
) As String
| Name | Type | Description |
|---|---|---|
| report | XtraReport |
An XtraReport object.
| | defaultUrl | String |
A String value specifying the default URL.
|
| Type | Description |
|---|---|
| String |
A String value that is the report’s URL.
|
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.
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
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
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