Adding the ActiveX Control to your Project

This section demonstrates how to add the Crystal ActiveX Control to an application project being designed in Visual Basic versions 5.0 and 6.0. If you wish to use the ActiveX Control in a different development environment or a different version of Visual Basic, please refer to the documentation that came with your development tools for information on adding an ActiveX or OLE Control (OCX) to your project.

The Crystal ActiveX Control was installed in the \WINDOWS\SYSTEM directory when you installed Crystal Reports. You add the ActiveX Control to your Visual Basic project using the Components command on the Visual Basic Project menu.

  1. Open Visual Basic.
  2. Open the project to which you want to add the ActiveX Control.
  3. Choose Components from the Project menu.

    The Components dialog box appears.

Note:    Crystal Report Control is the name of the Crystal ActiveX Control when it is added to a development project. The term ActiveX Control refers to a type of control, while Crystal Report Control is the name of the ActiveX Control provided by Crystal Reports.

  1. Use the controls in the Add ActiveX Control dialog box to locate and select the CRYSTL32.OCX file. This file was installed in your \WINDOWS\SYSTEM directory when you installed Crystal Reports. Once you locate and select the file, click Open.
  2. Crystal Report Control will now appear in the Available Controls list box. Click the check box next to the name of the control, and click OK.

    Visual Basic adds the Crystal ActiveX Control to your toolbox. The tool looks like this:

    {bml ocx_cntl.bmp}

  3. To add the ActiveX Control to a form, double-click the tool in the toolbox and Visual Basic installs it on the active form.

Note:    For instructions on how to add an ActiveX Control or OLE control to development applications other than Visual Basic, refer to the documentation that came with the development application you are using.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com