Solved

ActiveX control as 'Insertable Object'

Posted on 1998-10-01
10
553 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
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
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!

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

730 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