Solved

ActiveX control as 'Insertable Object'

Posted on 1998-10-01
10
550 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel - Save a copy of work book 13 84
Exit a vb6 apps when a calling it apps closes 15 48
Add and format columns in vb6 7 57
vbModal 12 51
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

770 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