Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
Delphi

Installing ActiveX Controls in RAD Studio 2007

the future of starts demands massive productivity

Author: Craig Stuntz

The procedure for installing ActiveX controls on the Delphi/RAD Studio 2007 component palette is apparently confusing to some users of older versions of Delphi. So here’s a simple example. In this example, I’m installing the type libraries needed to use the Crystal Reports 9 ActiveX viewer, and the associated runtime type library.  First I create a package for both type libraries, then add the designer the type library to the package, then finally add the ActiveX control for the viewer and install it on the Delphi component palette.

  • File→New→Package
  • Save package as Crystal.dproj in some useful place
  • Component|Import Component
    • Choose “VCL for Delphi Win32”, then “Import a Type Library”
  • Scroll to – Crystal Reports 9 ActiveX Designer Run Time Library (Version 9.0)
  • Click Next, then check “Generate component wrappers,” then Next
  • Choose “Add unit to Crystal.dproj”
  • Click “Finish”

  • Component|Install Component
    • Choose “VCL for Delphi Win32”, then “Import ActiveX control”
    • Crystal Report Viewer Control 9 (Version 9.2)
    • Click Next, then check “Generate component wrappers.” Click Next
    • Choose “Add unit to Crystal.dproj”
    • Click “Finish”

    • Right click Crystal.dproj in Project Manager, choose Install.

    See What's New in 12.2 Athens See What's New in 12.2 Athens Dev Days of Summer 2-24

    Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
    Design. Code. Compile. Deploy.
    Start Free Trial   Upgrade Today

       Free Delphi Community Edition   Free C++Builder Community Edition

    Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    IN THE ARTICLES