Boldreports.reportviewer not found

I am using boldreports in my blazor project , the code is as below

public async void RenderReportViewer()

    {

        viewerOptions.ReportName = "rptEmpList";

        viewerOptions.ServiceURL = "/api/BoldReportsAPI";

        await JSRuntime.InvokeVoidAsync("BoldReports.RenderViewer", "report-viewer", viewerOptions);

    }

    // Initial rendering of Bold Report Viewer

    protected override void OnAfterRender(bool firstRender)

    {

        RenderReportViewer();

    }


Microsoft.JSInterop.JSException

  HResult=0x80131500

  Message=Could not find 'BoldReports.RenderViewer' ('BoldReports' was undefined).

Error: Could not find 'BoldReports.RenderViewer' ('BoldReports' was undefined).

    at http://localhost:62129/_framework/blazor.server.js:1:67713

    


1 Reply

NK Nanda Kumar Thangamani Syncfusion Team July 20, 2021 08:50 AM UTC

Hi Cherry, 
 
Thanks for contacting Bold Reports support. 
 
We have validated the reported problem in our side and its working properly in our end. Please find the below Report Viewer getting started documentation for your reference, 
 
Also, We have prepared the Report Viewer blazor sample for you. Please use the refer the below sample download link, 
 
Regards, 
Nandakumar T 


Loader.
Up arrow icon