In this article you will learn how to create RDLC (Report Definition Language Client-Side) in C# ASP.NET.
RDLC Stands for Report Definition Language Client Side. It is used to create reports using Microsoft Reporting Technology. It is not a third party report and is a built-in reporting service in Microsoft Visual Studio. Benefits:
Here are the steps to create a new RDLC Report in C#. Step 1: To create a new website start Visual Studio 2008, Go to File, then click New Web Site. Then choose the path where we have to save the website folder and mention the website name as whatever you need. Here, I have given the website name as RDLC. Figure 1: Create a new website Then hit OK button. Step 2: Now we are going to create a Dataset for our report. Here are the steps: Right click the website name folder RDLC, Add new Item, then choose Dataset Figure 2: Dataset Creation Mention the dataset name and then hit Add button to explore the dataset window. Now your dataset RDLC placed under the App_Code folder then the following dataset window will open. Figure 3: Dataset window Step 3: In the working area of the dataset window right click , Add, then click DataTable. Figure 4: Adding Data Table Now the data table is added into the dataset working area field like the following, Figure 5: Data Table After the table creation right click the table, then Add and click Column to add column. Figure 6: Adding Column Add the data column whatever you need and then change the table name to tblStudent. Figure 7: After Column Field Added Now your data set is ready to connect with our report. Step 4: After dataset creation we are going to create RDLC. Right click website name folder, click Add new item, then choose Report Wizard. Figure 8: Report Creation Mention the report name as Student.rdlc and then hit Add button. After clicking add button the following pop up window will open. In this window hit next button. Figure 9: Pop up window After clicking next button it will take you into the data source selection window. Figure 10: Data Source selection window In this window select data source that is our tblstudent dataset and then click Next button.
Read more articles on ASP.NET:
Getting Started with ASP.NET 4.5 Web Forms and Visual Studio 2013