Share via


Creating a Web Site with a CrystalReportViewer Control

Before you create a Web Site, verify that Crystal Reports for Visual Studio has been installed on your system. For more information, see What Needs to be Installed?.

  1. Start Visual Studio.

  2. From the File menu, click New, and then select Web Site.

  3. In the New Web Site dialog box, click ASP.NET Web Site.

  4. In the Location dropdown, select File System.

  5. In the Language dropdown, select the coding language that you wish to use.

  6. In the Location text field enter the directory path C:\WebSites\, followed by the name of your project.

  7. Click OK.

Your project opens in Solution Explorer and contains a Default.aspx page.
  1. Open the Default.aspx page (the Web Form).

  2. From the View menu, click Designer.

> [!NOTE]
> <P>You can also switch to design view by clicking the Design button at the bottom of the form view.</P>
  1. From the Toolbox, open the Crystal Reports node to locate the CrystalReportViewer control.

  2. Drag the CrystalReportViewer control onto the Web Form.

The "CrystalReportViewer Tasks" Smart Task panel opens.