[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 569
  • Last Modified:

ActiveX control as 'Insertable Object'

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
rupertl
Asked:
rupertl
1 Solution
 
MirkwoodCommented:
Create an OLE document iso an OLE control. Look in the VB samples directory for a sample of OLE documents.
0
 
rupertlAuthor Commented:
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
 
MirkwoodCommented:
Add a registry key "Insertable" under the ProgID of the control.
Take a look at WebPopup.Webbrowser.1 control
0
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!

 
rupertlAuthor Commented:
This works for Wordpad but not the office97 apps for some reason
0
 
MirkwoodCommented:
Does the MFC Control register show up in Word?

0
 
rupertlAuthor Commented:
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
 
MirkwoodCommented:
Ok, I should been more complete. Thankx
0
 
MirkwoodCommented:
Remove the question please
0
 
AyalCommented:
why not insert the control first into another container which is
recognizable to WORD and EXCEL ?
0
 
linda101698Commented:
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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now