All docs
V21.1
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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

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