Designing and Developing Reports in ASP.NET 2.0 - Displaying the report using the ReportViewer control
(Page 4 of 5 )
Up to now, we created the data set and designed the report. Now it is time to view the report on a web page. Let us proceed with the following steps one by one to view the report.
- Double click on "default.aspx" to open it.
- Drag and drop the "ReportViewer" control from the toolbox.
- From the smart tag of the "ReportViewer" control, select "SalesReport.rdlc" from the drop down.
- At this moment, you can observe that the designer automatically creates an "ObjectDataSource" to bind.
- You can go to the properties window of the ReportViewer control and play with different settings.
- Now, you can press F5 to execute the solution. You will be prompted for the "Web.config" modification for debugging, to which you respond by clicking on "OK."
- The output must be similar to the following:
Next: Attaching reports to the ReportViewer control dynamically >>
More ASP.NET Articles
More By Jagadish Chaterjee