?
Solved

Creating OCX for use in Excel etc.

Posted on 2002-04-28
4
Medium Priority
?
149 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
ID: 6976811
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
ID: 6977392
listening
0
 
LVL 5

Author Comment

by:Hamlet081299
ID: 6979076
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
ID: 6979121
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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 summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

807 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