Generate Dynamic RDLC Report In Windows Form Application


It has been a while since my last article, but coming back I have decided to write an article or a series of articles about different behaviors of C# in the professional field because this language is most popular as per industry prospects.


This is necessary that the beginning-level developer be familiar with any programming concepts in general. It is also necessary that the developer has an understanding and experience of the C# language. It is also recommended that the beginning developer is also familiar with Object Oriented Programming and some design concepts as well.

In this article we will generate the dynamic RDLC report by giving only the employee id the report is automatically generate. The report which we are generating is basically the salary slip of the employee.

Using Code

Before we start, you will need the IDE (Integrated Development Environment) which is known as Visual Studio. It is a large file so make sure you have reliable connection before you getting the download

You can download it for both versions, Mac or Windows.

IDE Download Source: Visual Studio Community 2015.

Step 1: Create a new project name as “Dynamic RDLC Report” and press button “OK”.

Window form application

Step 2: Drag and drop the one textbox, button and report viewer, and label from toolbox and set the label name “Employee ID”. And add the Oledb connection.

Oledb connection

Step 3: After that we can create a database in Microsoft Access 2013.

Microsoft Access 2013

Step 4:
Now add the RDLC report on project and set the name “EmployeeReport”.


Step 5: After create the report, in right side toolbox is appear name as Report Data, left click on dataset and add the dataset name as “dsSalary”.


Step 6: Now add the dataset, after creating double click on dataset and then left click between the dataset and add the tableadptar.


Step 7: Add the code on the submit button event. Now we start the code in “Submit Button.” Always remember the name of textbox and if you want to change the textbox name so you can change it

Submit Button

Step 8: Now you run the project and only give the ID of the employee the salary slip is dynamically generating.

run the project

Point Of Interest

The basic purpose of this article is that when we come into the professional life, the intermediate level of companies don't have much time to generate every employee salary slip in every month by making a dynamic report. Here you don't need anything; the month is always set as dynamic, it always changes by date and time. We only need the employee Id, the report is automatically generated.

Read more articles on Windows Forms:

Up Next
    Ebook Download
    View all
    View all