Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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