The Report in Visual Studio can be created by using the links to the report wizard provided by the viewer control. There are two types of ReportViewer controls in Visual Studio toolbox as mentioned below: ReportViewer Web server control for ASP.NET pages used for web hosting Report Viewer Windows Forms control for report display in windows form applications Report Viewer features ReportViewer controls are tools used for viewing the reports generated by SQL Server Reporting Services builder tool. Report Viewer controls have a view area for displaying the report and configurable toolbar in a report. Toolbar The toolbar provides large number of features for windows and web versions. All features in the Windows version are enabled for displaying by default. Features like document map, navigation, controls for multi page report, zoom, print, export functionality are useful. The property window of the ReportViewer control helps to modify the items. The processing mode enables to specify the report is processed locally, on remote mode. The IDE provides programmatic interfaces to interact with the ReportViewer control using code. A dummy procedure displays the accessible properties and methods of the control in the drop down menu. Difference between web server and windows forms There are differences in the environment in which they are used. Lets understand the differences between them. The Report Viewer web control is useful in designing an ASP.NET web application. The Report Viewer windows control is useful in designing a windows application. The Report Viewer web control uses HTML as presentation format. The Report Viewer window control used the graphic device interface. The Report Viewer web control is configurable for asynchronous processing. The Report Viewer window control is used for local report and is processed as Windows background process configurable for asynchronous programming. The Report Viewer web control uses an ActiveX control for reports on remote server. The Report Viewer window control uses print functionality of operating system. The Report Viewer web control deployment takes the session information and web farm configuration. The Report Viewer windows control is similar to any windows application. The Report Viewer web control needs Internet Explorer 6.0 or above with the script enabled. The Report Viewer windows control does not need browser support. Report Viewer control for Windows To display a report in a desktop application, the Report Viewer control needs to be embedded with the Windows form. The following steps demonstrate the Report Viewer control in windows application. Open Visual Studio application by clicking Start, All Programs, Microsoft Visual Studio application Click File, New, and Project for creating a project application Click on Windows Forms Application in the Visual Studio installed templates. Modify the default name for the application. After adding the name, use the Browse button to select the location for an application. In the toolbox, click on the MicrosoftReportViewer control Click on the design view of the new report from the drop down menu Click Next Button The Data Source Configuration wizard window opens. Accept the default database and click on the Next Button Click on the New Connection button. In the Add Connection window, select Microsoft SQL Server Compact 3.5. In the Data Source configuration wizard window, add the connection information for the Connection String field. Click Next Button The Choose Database objects window appears to the user. Select the database objects. Click on the checkbox tables. Click on the Next button. The arrange fields window appears. Add the required fields in the summation values column as shown below. Choose the style and click Next button Click Finish button. Click on the Build menu item and start debugging. The following output is displayed. Report Viewer control for web application Click File, New Website, for opening the new website window as shown below: Highlight the ASP.NET web site and choose the location as HTTP. Add the website name and click ok. Click on the menu item Website, click Add New Item. Click on the DataSet in the templates. Click add button In the App code, right click from the drop down menu and select Add, Table Adapter. The data table is added to the designer window. Select the server for connection and click Next button. The SQL Server login page is visible to the user. Provide the authentication information. Click Ok In Save the Connection String to the Application Configuration page, accept the default value and click Next button In the Choose a Command Type page, accept the default Use SQL statements. Click Next button Add the SQL Statement page and add the data loaded into the table. Click on the Query builder button and open the interface. From the list of tables, select the required tables and add them to the Query builder. Click on Execute query button and check the SQL statement. Click Ok. The Choose methods to generate page of the wizard opens. Accept the default values and click Finish button. The configured data table in the designer window is as shown below Click on the menu item Add New item. Select Report from the installed templates. Click on the menu item Report, select data sources. Click Add to Report button. The selected data source is added to the report data sources. Click on the menu item Data from the drop down list, click Show Data sources. Click and add the fields from the data sources in the body of the report. Add the Report Viewer control to the aspx page. Select the rdlc extension file from the drop down list. Build the website and the aspx page is displayed.