I am working on adding the SSRS based reports into the Blazor Sever Application. SSRS Configuration is working fine and I can access SSRS on browser as well.
I searched for different methods to implement the SSRS reports (created using MS Report Builder) and found few:
- Using iframe to simply embed the reports
- SSRS REST API embedding Reports (Read this on Microsoft site: https://learn.microsoft.com/en-us/sql/reporting-services/developer/rest-api?view=sql-server-ver15)
- Third party tools (of course not, they are highly paid)
- Create a Web Page in .NET Framework and used as Report Viewer in Blazor, of course not
When I write down this API: https://localhost:440/ReportServer/api/v2.0/Reports it shows the list of available reports on Report Server:
localhost/ReportServer - /
22 January 2025 06:37 <dir>
Microsoft SQL Server Reporting Services Version 16.0.1116.38
But when I searched:
https://localhost:440/ReportServer/api/v2.0/Reports(ItemPath='/BlazorSQL-Reports/Details')/Export(Format='PDF')
:::::BlazorSQL-Reports folder has a Details.rdl file.
I always end up getting HTTP Error 400, and file does not downloaded as well.
Plus is there any way I can only render the (Details.rdl) or any other Report file in my Blazor Application using the REST API, in PDF Format?
References:
I saw these links as well, but didn't find anything well:
https://learn.microsoft.com/en-us/answers/questions/169845/ssrs-reports-export-pdf-and-excel-in-rest-api
https://learn.microsoft.com/en-us/answers/questions/749433/use-ssrs-2017-2019-rest-api-to-render-report-and-s
https://learn.microsoft.com/en-us/answers/questions/1692165/srss-rest-api-get-the-content-of-the-report
https://learn.microsoft.com/en-us/answers/questions/111817/ssrs-api-download-pdf