Share via


Configuring the CrystalReportSource in Smart Tasks

Visual Studio 2005 and later has a new GUI feature for .NET controls that is called Smart Tasks. For the CrystalReportViewer control in Web Sites, the Smart Task panel is named "CrystalReportViewer Tasks."

The "CrystalReportViewer Tasks" Smart Task panel enables you to configure several features of the CrystalReportViewer control, without having to write code. Any selections that you make through the use of Smart Tasks are generated as tag-based settings within the ASPX page.

In this section, you learn how to configure the CrystalReportSource option that is available from the "CrystalReportViewer Tasks" Smart Task panel.

Later in these reduced-code tutorials, you examine other features of the "CrystalReportViewer Tasks" Smart Task.

To begin, you learn how to close and re-open Smart Tasks.

To configure the CrystalReportSource using Smart Tasks

  1. If the Smart Task panel is currently open, click the Web Form to close the Smart Task panel.

  2. On the upper-right corner of the CrystalReportViewer control, click the small triangular button.

The Smart Task panel named "CrystalReportViewer Tasks" re-opens. In the Choose Report Source list, \<None\> is displayed.
  1. Click the Choose Report Source list and select <New report source…>.
The Create ReportSource dialog box opens.
  1. In the Specify a name for the control textbox, leave the default entry as CrystalReportSource1.

  2. Click the Specify a report for the CrystalReportSource control list and select <New Report>.

Your alternative selection is \<Browse…\>. That option allows you to select an existing Crystal report from the file directory. However, in this tutorial you create a new report.
  1. In the Create a New Crystal Report dialog box, enter the name "XtremeCustomers.rpt," and then click OK.

  2. Click OK again to close the Choose Report Source dialog box.