programmatically embedding an object w/ an Addin

T

Tom Caldwell

Is it possible to programmatatically insert an embedded object with a COM
Addin?

Tom
 
T

Tom Caldwell

I'm writing an Addin for Word, Excel, and PowerPoint (different Addins)
usign VC++ and ATL. I want to programmatically insert an embedded object on
the OpenDocument event. I have not been able to figure out the function
call or technique to do so.

Tom
 
C

Cindy M -WordMVP-

Hi Tom,
I'm writing an Addin for Word, Excel, and PowerPoint (different Addins)
usign VC++ and ATL. I want to programmatically insert an embedded object on
the OpenDocument event. I have not been able to figure out the function
call or technique to do so.
I think it's different for the different applications. For Word and Excel, I
suggest you record the steps in a macro in order to find out what the basic
syntax should be. In Word, it will be some form of the Add method for the
Shapes or Inlineshapes collection. But which of the various possibilities will
depend on what KIND of object you're trying to insert.

For Powerpoint, ask in the public.powerpoint group. And do tell them
- version of Powerpoint
- type of object (I'd also copy/paste the Word macro recorder code to give
them an idea of the Class that's involved)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top