Help: Insertable C# object in Word/Powerpoint 2003/2007

T

Tom31

Hello,

I do not know if I post in the right forum if it is not the case please
advise me.
I have developped a C# user control that contains a picture box in which I
can make customized draw in. I would like to be able to integrate this user
control like an object via menu "Insert"/"Object" from Powerpoint/Word. This
integrated object should have its data saved into the office document (my
user control is already serializable). By this I can have an integrated tool
to make customized drawings in office document, then send this document to
somebody else, that will edit it directly through Powerpoint and complete it.
I do not know how to realize the layer that allows integration into office
document. For information I use C# under VS2005 on a XP desktop.

Thanks for your help!!!!
 
C

Cindy M.

Hi Tom,

I can't give you any details, not having done this, but what you need to do is
create a COM ActiveX control and put your functionality into that. This is
basically what the VSTO technology does, although none of the VSTO
documentation goes into the particulars of *how* it does that - but it tells
you it can be done.

You could, perhaps, try an Interop forum
http://social.msdn.microsoft.com/Forums/en-US/os_interopscenarios/threads
http://social.msdn.microsoft.com/Forums/en-US/clr/threads

or newsgroup
http://msdn.microsoft.com/newsgroups/default.aspx?
dg=microsoft.public.dotnet.framework.interop&lang=en&cr=US
I have developped a C# user control that contains a picture box in which I
can make customized draw in. I would like to be able to integrate this user
control like an object via menu "Insert"/"Object" from Powerpoint/Word. This
integrated object should have its data saved into the office document (my
user control is already serializable). By this I can have an integrated tool
to make customized drawings in office document, then send this document to
somebody else, that will edit it directly through Powerpoint and complete it.
I do not know how to realize the layer that allows integration into office
document. For information I use C# under VS2005 on a XP desktop.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :)
 
T

Tom31

Thanks a lot Cindy. I will try to glance for more information on indicated
forums. But I remember reading things on Com ActiveX indicating that it uses
GDI, which do not allow transparency. But I will continue searching this way.
 
C

Cindy M.

Hi Tom,
I will try to glance for more information on indicated
forums. But I remember reading things on Com ActiveX indicating that it uses
GDI, which do not allow transparency. But I will continue searching this way.
An Office document can't support any other kind of control - it's not designed
to. I'm not sure what you want to do with the "transparency", but if you have
the idea of seeing the document content behind the control I suspect this may
not be possible...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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