Report Viewer for Blazor (native)
- 2 minutes to read
Quick Start
Review the following guides to create a Blazor reporting application with the Report Viewer (Native):
- Create Blazor Report Viewer Application from DevExpress Template
- Create Blazor Report Viewer Application from Microsoft Template .NET 5
- Create Blazor Report Viewer Application Using CLI (.NET 5.0)
- Create Blazor Report Viewer Application Using CLI (.NET 6.0)
Interface Elements
The following help topic describes the Report Viewer’s user interface elements: Interface Elements - Report Viewer for Blazor.
Open a Report
Use the DxReportViewer.Report property to specify a report to open. To load a report at runtime, assign an object with the IReport interface (an XtraReport or CachedReportSource instance) to the DxReportViewer.Report property.
The DxReportViewer.OpenReportAsync(IReport) method allows you to load a report asynchronously.
Review the following help topic for more information: How to Load a Report and Restore the Data Connection.
Click Print in the Toolbar to print the document.
The Report Viewer renders the report in PDF and invokes the browser Print dialog.
Export
Click Export To and select an export format from the list to download the report in the selected format.
Use the report’s ExportOptions property to specify the export options.
Customization
The DxReportViewer class allows you to manage the component in code and adjust the component settings and behavior.
Localization
The DxBlazorReportViewerLocalizerLocalizationService class allows you to localize the Report Viewer UI at runtime.
For information on localization techniques for DevExpress Blazor components, refer to the following help topic: Localization.
Report Layout in Razor Markup
DevExpress Blazor Reporting enables you to use markup language to include the report layout in a Razor page and preview the report in the Report Viewer component. For more information, review the following help topic: Report Layout in Razor Markup.