Viewing the Report

Before you can display the report from within an ASP.NET application, you'll need to embed the CrystalReportViewer control on a page. In this section, you'll learn to use the control and then to view the page you've created.

Creating a Report Viewer Page

Follow these steps to set up the CrystalReportViewer control on a page to display your report:

1.
Use the Project, Add Web Form menu item to add a new page. Name the page ProductsReport.aspx.
2.
Set the PageLayout property for this new page to flowLayout.
3.
In the Toolbox window, double-click the CrystalReportViewer control to add an instance to your new page.
4.
Set the new control's ID property to cvwProducts and its DisplayGroupTree property to False.

TIP

The viewer ...

Get ASP.NET Developer's JumpStart now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.