Is there any way to show RDLC Local ReportViewer control in asp.net core webpage?
To show a ReportViewer, on a traditional WebForms application, the below code works.
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div style="height: 600px;">
<rsweb:ReportViewer ID="reportViewer" runat="server" Width="100%" Height="100%"></rsweb:ReportViewer>
</div>
</form>
</body>
I have already tried and tested the below components. The results are given below.
- ReportViewerForMvc - Works for MVC, but not compatible with ASPNET Core.
- MvcReportViewer - Works for MVC, but not compatible with ASPNET Core(See this issue: https://github.com/ilich/MvcReportViewer/issues/121).
- MvcReportViewer - Does not use microsoft viewer control, thus supports aspnet core, but does not work with Local Reports(Need a report server url).
- ngx-ssrs-reportviewer npm package - A wrapper over Remote Reports, does not supports Local reports.(Need a report server url)
Q1. What is the best approach to use <rsweb:ReportViewer>
in asp.net core application?