?
Solved

ActiveX control as 'Insertable Object'

Posted on 1998-10-01
10
Medium Priority
?
561 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

764 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