Here I will explain how to
create and use RDLC report in asp.net MVC 3 using dataset with example in c#
in visual studio 2010. Normally we use the RDLC report in asp.net
web forms application. Similar way we can use the RDLC report in asp.net MVC also. This post will show you how to use RDLC
report in Asp.net MVC 3 applications.

Full meaning of RDLC is Report Definition Language
Client-side. It is the extension of report file. It is used to create report s
using Microsoft reporting technology. These files are created by the Visual
Studio 2005 version of Report Designer. RDLC reports can be executed directly
by the Report Viewer control in client side

Please follow the steps given below to create RDLC Report

Before start
implementation first design new table in your database and give name EmployeeMaster

Column Name

Data Type

EmpId

Int(set identity
property=true)

EmpName

Varchar(50)

Designation

Varchar(50)

Location

Varchar(50)

EmpStatus

Bit

After completion of table creation enters some dummy
data because we need to use that data to populate reports.

Create
a Asp.net MVC 3 application

Now add new controller for
that right click on controller folder and select Add Controller and give name
as Employee like as shown below

Once we add controller
next step is we need to add view for that right clicks on action result like as shown below

Now open the view page (cshtml), in which we are
displaying the report. In the example I am adding report in ManageEmployees/Index. So I have opened
Views\ManageEmployees \Index.cshtml

Create a folder “Reports”
(or any name) in application root folder. Now let’s create our RDLC report. I
assume that you are already aware about creating and using RDLC reports
otherwise check this link Create RDLC report in asp.net with example. Now Right click
on “Reports” folder and add new Report as shown below.