Skip to main content
All docs
V26.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.v26.1.JSBasedControls.Common.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.

    <button  @onclick="OpenReport">Open Report</button>  
    <DxDocumentViewer   @ref="dxDocumentViewer" Height="1000px" Width="100%">  
    </DxDocumentViewer>  
    
    @code {  
    DxDocumentViewer dxDocumentViewer;  
    void OpenReport() {  
       dxDocumentViewer.OpenReport("HelloWorld");  
       }  
    }
    

    For additional information on how to load reports in the Document Viewer, refer to the following help topic: Open a Report in the Blazor Document Viewer.

    See Also