Skip to main content
All docs
V24.1

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.1.JSBasedControls.Common.dll

NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls.Common

Declaration

public Task OpenReport(
    string reportName
)

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