Adding the C1ReportDesigner Component to a Project
Manually Adding C1ReportDesigner to the Toolbox
When you install ComponentOne Reports for .NET Designer Edition, the following Reports for .NET Designer Edition component will appear in the Visual Studio Toolbox customization dialog box:
• C1ReportDesigner
To manually add the C1ReportDesigner control to the Visual Studio Toolbox:
1. Open the Visual Studio IDE (Microsoft Development Environment). Make sure the Toolbox is visible (select Toolbox in the View menu if necessary) and right-click it to open the context menu.
2. To make the C1ReportDesigner component appear on its own tab in the Toolbox, select Add Tab from the context menu and type in the tab name, C1ReportDesigner, for example.
3. Right-click the tab where the component is to appear and select Choose Items from the context menu.
The Choose Toolbox Items dialog box opens.
4. In the dialog box, select the .NET Framework Components tab. Sort the list by Namespace (click the Namespace column header) and check the check boxes for all components belonging to namespace C1.Win.C1ReportDesigner. Note that there may be more than one component for each namespace.
Adding Reports for .NET Designer Edition to the Form
To add Reports for .NET Designer Edition to a form:
1. Add the C1ReportDesigner control to the Visual Studio Toolbox.
2. Double-click the control or drag it onto your form.
Adding a Reference to the Assembly
To add a reference to the Reports for .NET Designer Edition assembly:
1. Select the Add Reference option from the Project menu of your project.
2. Select the ComponentOne C1ReportDesigner assembly from the list on the .NET tab or browse to find the C1.Win.C1ReportDesigner.2.dll file and click OK.
3. Double-click the form caption area to open the code window. At the top of the file, add the following Imports statements (using in C#):
Imports C1.Win.C1ReportDesigner
Note: This makes the objects defined in the C1ReportDesigner assembly visible to the project. See Namespaces for more information.
|