In Visual Studio 2005, when you add a .NET control to a Web or Windows Form, a Smart Task panel appears. Smart Task is a small panel that is attached to the upper right-hand corner of the .NET control. When the panel is opened, it contains checkboxes and combo boxes that allow developers to select connectivity and other options for the control. This feature can significantly reduce the amount of code that the developer needs to write.
In a Web Site, selections that are made in the Smart Task panel produce auto-generated XML in the ASPX page.
In a Windows project, selections made in the Smart Task panel produce auto-generated code in a hidden class file. The hidden class file is a "partial" class, which acts as an addendum to the existing Windows Form class. Partial classes are a new feature of the .NET Framework version 2.0.
The CrystalReportViewer control makes full use of the Smart Task panel. The selections available in the panel are different between Web and Windows projects.
Click the appropriate link for more information about the following Smart Task panels:
Limitations of Smart Tasks and the Reduced Code Model
Smart Tasks facilitate a reduced-code model that auto-generates code to save time over manually writing code.
However, while auto-generated code saves time at first, it's difficult to switch from a reduced-code model to a coding model, should you later want to add power and flexibility to a project.
Developing Crystal Reports projects with the reduced-code model
If you want to use the reduced-code model to build your Web Site or Windows project with Crystal Reports, see one of the following Smart Task tutorials:
- Reduced-Code Web Site Setup with Crystal Reports Using Smart Tasks
- Reduced-Code Windows Project Setup with Crystal Reports Using Smart Tasks
Developing Crystal Reports projects with a coding model
If you want to write code manually to build your Web Site or Windows project with Crystal Reports, see Project Setup.