We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Bold Report Not working in Blazor Winforms

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


3 Replies

AM Arumugasami Murugesan Syncfusion Team November 14, 2022 09:15 AM

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.

https://help.boldreports.com/embedded-reporting/blazor-reporting/report-viewer/add-report-viewer-to-a-blazor-application/

https://help.boldreports.com/embedded-reporting/javascript-reporting/report-viewer/display-ssrs-rdl-report-in-javascript-application/


Regards,

Arumugasami M



AL Alvin November 14, 2022 04:13 PM

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

reporterr.JPG

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






AM Arumugasami Murugesan Syncfusion Team November 16, 2022 09:28 AM

We have prepared the sample application in Blazor WinForms application for your referenceTo 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.

https://help.boldreports.com/embedded-reporting/aspnet-core-reporting/report-viewer/display-ssrs-rdl-report-in-asp-net-core-application/

https://help.boldreports.com/embedded-reporting/blazor-reporting/report-viewer/add-report-viewer-to-a-blazor-application/


Note: If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.


Loader.
Live Chat Icon For mobile
Up arrow icon