Good Day
I have a blazor app that uses Bold Reporting. The report works in the Web App but when I run the same report in the WinForms blazor I get the following error - There is no content at api/BoldReportsAPI/PostReportAction
Do you have an example or any suggestions - I used the bold reports with the boldreports-interop.js implementation.
Thank You
Hi Alvin,
Thanks for contacting Bold Report support.
Please use the below online demo reportServiceUrl and reportPath in your sample and confirm whether the report viewer runs at your end or not. And also, is it possible to share your issue reproducible sample to validate further?
reportServiceUrl: https://demos.boldreports.com/services/api/ReportViewer, reportPath:'~/Resources/docs/sales-order-detail.rdl'
|
You can refer the below documentation.
Regards,
Arumugasami M
Hi
Thanks for the reply. This is a Blazor hybrid project. The report viewer is working and showing the report when I run the Blazor web app. The problem comes when I try to run the same Blazor project in Desktop(WinForms). The reportviewer shows but I get the below message. Check image
This is the line of code where the problem comes in, it does not run the javascript in the blazor Desktop(WinForms) app only in the blazor web app-
await JSRuntime.InvokeVoidAsync("BoldReports.RenderViewer", "report-viewer", viewerOptions);
Please let me know if you have any ideas or a blazor hybrid example with Bold Reports
We have prepared the sample application in Blazor WinForms application for your reference. To use the report viewer WinForms, you need to build the service application. The service must be an ASP.NET core or ASP.NET MVC application. Please find the sample link below
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorWinForms1991598182.zip
You can
refer the below documentation.
Note: If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.