Reporting-Creating ReportViewer Report

Reporting

1. Reporting – Create a new windows application project in your visual studio 2013 then add report viewer to your project.

Reporting

Add ReportViewer

2. Dock report viewer to your form.

Reporting

Dock ReportViewer

3. Add Dataset to your project by simply right clicking on your project name and selecting Add-New Item

Reporting

Add New Item

4. Select data from the left pane and search for Dataset from the middle pane

Reporting

Add Dataset

5. Open Dataset you just added and add DataTable. See image below.

Reporting

Create DataTable

6. Add a column to your table.

Reporting

Add Column

7. Add Report to your project (RDLC file). Right-click again on your project name in your solution explorer and select Add->New Item, then select Reporting from the left pane and choosing Report from the middle pane.

Reporting

Add RDLC Report

8. Open your RDLC report then add List tools from your toolbox located on the left side of your RDLC designer.

Reporting

Add List

9. Choose Dataset for your List Table. In my case it is Dataset1.

Reporting

Choose DataSource

10. Add a column to your list by simply right clicking on any cell and selecting Insert Column.

Reporting

Add Column

11. Manually add column name to your List Table from your DataTable. See image below.

Reporting

Add Column name

12. This is my final view of the design for my RDLC report.

 

Reporting

Final RDLC Design

13. To add Data to our list and display it in our reportviewer from our form. Copy the code below. I write my code inside form load event .

Note:
ReportViewer.Report1.rdlc

• ReportViewer -> Name of my project
• Report1.rdlc -> Name of my rdlc report
• DataSet1 -> Dataset Name

14. Then run your project by simply clicking F5 on your keyboard.

Reporting

Final View

Than you for reading!!

Happy Coding!!

Leave a Reply

Your email address will not be published. Required fields are marked *