Skip to main content
A newer version of this page is available. .
All docs
V21.1

DxDocumentViewer.ReportName Property

Gets or sets a string that specifies the unique report name.

Namespace: DevExpress.Blazor.Reporting

Assembly: DevExpress.Blazor.Reporting.v21.1.JSBasedControls.dll

NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls

Declaration

[Parameter]
public string ReportName { get; set; }

Property Value

Type Description
String

A string that identifies a report.

Remarks

The ReportName property specifies a string that the report name resolution services translate to return a report.

You can set ReportName property at runtime to refresh the Document Viewer content. When you change the ReportName property, the Document Viewer control does not re-render, it only reloads the report.

Use Report Name Resolution Services

IWebDocumentViewerReportResolver (Document Viewer only)
Allows you to parse a report name, create a report instance and return it to the calling method. When you have a parameterized report, you can specify parameters in the report name that is passed to the service, and use parameters in the report’s constructor.
PreviewReportCustomizationService (Report Designer only)
Allows you to customize the current report and assign a CachedReportSourceWeb object when the Report Designer is about to be switched to the Preview tab.
ICachedReportSourceWebResolver (Document Viewer only)
Returns the CachedReportSourceWeb instance. It has an asynchronous counterpart - the ICachedReportSourceWebResolverAsync service that allows you to build a document asynchronously.
IReportProvider (Document Viewer and Report Designer)
The service has lower priority than the previously mentioned services. However, it is not intended for exclusive use by the Document Viewer. The main advantage of IReportProvider service is that it can be attached to reports created at runtime. The IReportProviderAsync service gives you the benefits of asynchronous operation.
ReportStorageWebExtension (Document Viewer and Report Designer)
The service is called when no other report name resolution services are available. It is designed to get reports from external storage (a file or a database) where they are saved in XML format (REPX files). Note that the GetData method returns a serialized report. If you use the GetData method to specify the default parameter value for the loaded report, set the Value property to the parameter value.
See Also