Solved

ActiveX control as 'Insertable Object'

Posted on 1998-10-01
10
556 Views
Last Modified: 2013-12-20
Does anyone know how to create an ActiveX control in VB, that can be
inserted into a container (eg Word or Excel) using the 'insert object'
menu option.

In VC++, the AFXRegisterOLEControl function takes an 'insertable
object' flag which achieves this

thanks for any help
0
Comment
Question by:rupertl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1487255
Create an OLE document iso an OLE control. Look in the VB samples directory for a sample of OLE documents.
0
 

Author Comment

by:rupertl
ID: 1487256
This doesn't answer the question of how to insert an ActiveX component into an OLE container (like word or wordpad).

An ActiveX document can only be used in a document container like office binder or IE4
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1487257
Add a registry key "Insertable" under the ProgID of the control.
Take a look at WebPopup.Webbrowser.1 control
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rupertl
ID: 1487258
This works for Wordpad but not the office97 apps for some reason
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1487259
Does the MFC Control register show up in Word?

0
 

Author Comment

by:rupertl
ID: 1487260
I've found by experimentation that some apps (eg wordpad and outlook editor) check for the 'Insertable' key under the CLSID key and others (eg Office97 apps) check for it under the ProgID

Thank you for your help

Rupert
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1487261
Ok, I should been more complete. Thankx
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1487262
Remove the question please
0
 

Accepted Solution

by:
Ayal earned 200 total points
ID: 1487263
why not insert the control first into another container which is
recognizable to WORD and EXCEL ?
0
 
LVL 7

Expert Comment

by:linda101698
ID: 1487264
rupert1 posted the following in customer service:

This question was half-answered, then fully answered  - please credit the points
to Mirkwood

Mirkwood - Look for the question in this topic area to receive your points for your help on this question.

Linda Gardner
Customer Service @ Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

688 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