Adding the Automation Server to your Visual Basic Project

Before you can use the Crystal Report Engine Automation Server with a Visual Basic project, it must be registered on your system, and you must add it to your project. If you selected to install Development Tools when you installed Crystal Reports, the automation server will have already been registered on your system. If you did not select Development Tools, run the Crystal Reports setup application again, select Custom installation, and make sure Development Tools are installed.

Note:    The following procedures demonstrate the use of the Report Engine Automation Server in versions 5.0 and later of Visual Basic. For information on using automation servers in earlier versions of Visual Basic, or in other development environments, please refer to the documentation that came with your software.

To add the automation server to a project in Visual Basic versions 5.0 or 6.0:
  1. With your project open in Visual Basic, choose References from the Project menu. The References dialog box appears.

    Note:    For complete information on adding ActiveX components to a project, refer to your Visual Basic documentation.

  2. The Available References list box shows all available component object libraries currently registered on your system. Scroll through this list box until you find the Crystal Report Engine 8 Object Library. This is the Crystal Report Engine Automation Server.

    Note:    If the Crystal Report Engine Object Library does not appear in the Available References list box, use the Browse button to locate and select the Crystal Report Engine Automation Server (CPEAUT32.DLL) in your \WINDOWS\SYSTEM directory.

  3. Toggle on the check box next to the Crystal Report Engine 8 Object Library reference. This makes the Crystal Report Engine Automation Server available to your project.
  4. Click OK in the References dialog box.


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