Using Microsoft Report Viewer in a .NET 4.7.2 ASP.NET MVC App

Brandon Owensby 1 Reputation point
2021-06-22T15:51:09.847+00:00

I'm trying to add a page to an MVC app using Razor. I've seen articles that refer to passing the ReportViewer object into the view and calling Html.ReportViewer to render it but that method doesn't exist. From what I can tell that may only exist if you use a older non microsoft nuget package. I'm curious if there is another way...or what the recommended way to use the report viewer...or for that matter to display an SSRS report in a razor page.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,245 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,791 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,201 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,061 Reputation points
    2021-06-23T02:47:31.3+00:00

    Hi @Brandon Owensby ,
    Microsoft has not release SSRS viewer for ASP.NET MVC yet.So,I think you could install ReportViewerForMvc.It use reportview control in your view.
    More details,you could refer to below article:
    https://www.c-sharpcorner.com/article/how-to-display-ssrs-report-in-asp-net-mvc-web-application/
    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.