Solved

Creating OCX for use in Excel etc.

Posted on 2002-04-28
4
139 Views
Last Modified: 2010-04-04
Does anyone have any good references on writing OCX's in Delphi?

I am trying to write an OCX control that I can then use in Excel.  I thought it'd be easy.  I follow the basic process of ...
1. Create VCL control
2. Wrap as an ActiveX control
3. Register it
... but the control does not appear in the list when I do an "Insert | Object" in Excel.

Any ideas?

(p.s. Using D6)
0
Comment
Question by:Hamlet081299
4 Comments
 
LVL 44

Expert Comment

by:bruintje
Comment Utility
Hi Hamlet,

reading from what you did it should work like that

maybe you've to choose insert object and then do a search for the component

why it doesn't appear in the list i don't know, but i use a control in an excel application that was registered on the PC and was not visible in the list of objects. i looked on disk and added it that way and it worked just fine

HTH:O)Bruintje
0
 
LVL 9

Expert Comment

by:ginsonic
Comment Utility
listening
0
 
LVL 5

Author Comment

by:Hamlet081299
Comment Utility
Okay ... I've figured out where I'm going wrong.

It's the way I was trying to insert the object.

Using the menu "Insert | Object" does not work, but instead do this...

1. View | Toolbars | Control Toolbox

2. Click on the "More Controls" button.

3. Select the control.

I'll leave this question here for others who are struggling with this one.
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
Comment Utility
200 points refunded, items closed by moving it to the PAQ at zero points where it will help others.  Thanks for posting the solution you discovered on your own.
Moondancer - EE Moderator
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now