DxDocumentViewerBase.OpenReport(String) Method
Opens the specified report on the Web Document Viewer’s client side. Allows you to refresh a preview for the loaded report.
Namespace: DevExpress.Blazor.Reporting
Assembly: DevExpress.Blazor.Reporting.v24.2.JSBasedControls.Common.dll
NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls.Common
Declaration
Parameters
Name | Type | Description |
---|---|---|
reportName | String | A string that specifies the report’s URL. |
Returns
Type | Description |
---|---|
Task | A Task that is completed when the report is opened. |
Remarks
The Open
method loads the specified report and you can use it to update the displayed document. You should implement and register a report name resolution service to resolve a name to a report. For more information, review the following help topic: Open a Report in ASP.NET Core Application.
<button @onclick="OpenReport">Open Report</button>
<DxDocumentViewer @ref="dxDocumentViewer" Height="1000px" Width="100%">
</DxDocumentViewer>
@code {
DxDocumentViewer dxDocumentViewer;
void OpenReport() {
dxDocumentViewer.OpenReport("HelloWorld");
}
}
See Also