Re: How to write an OLE object in .NET?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Thomas,

I don't really have an answer for you, except to say that currently embedded OLE
objects are very much in use in Office. Whether they will be in the future I
simply do not know.

You could try asking this in the dotnet.framework.interop newsgroup. Someone
there might have some advice for you
http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=micro
soft.public.dotnet.framework.interop&cat=en_us_58598dd7-357a-4884-86b1-fc3ec838c
ba4&lang=en&cr=us

I am stuck with a problem that should be simple, so maybe you could point me
in the right direction, maybe even with example code? That would be very much
appreciated.

I want to write a program (MyApp) that can be embedded into MS Office as an
OLE Object. So I want to be a able to do Insert->Object->MyApp, and then edit
this object within MS Office using my program. And if at all possible, I want
to do that in .NET using C# or managed C#.

The only example I could find is the infamous notepad. Unfortunately it is
written using MFC and veyr sparsely documented, so it is difficult for me to
see what is going on there. (Not much, I would guess, because most things
happen inside MFC.)

I also noticed that OLE has been renamed/relaunched/superseeded several
times, so I also searched for "automation server", "activex component" and
"winforms". But I didn't find any useful information there either. Has the
idea of in-process embedding of objects been abandoned? That would be a
shame, because I think it is a rather powerful way of creating documents.

So at this point I would be very glad for any help how to create an OLE
embeddable object. If it is not possible in .NET, I would even go the extra
mile and do it in MFC.


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 :-)

.



Relevant Pages

  • Re: PowerPoint PC/Mac Problems
    ... instead of embedding the objects. ... Word macro took a little shortcut with OLE 2 that cuts out some ... Windows PPT that does what I described. ... >>I still don't understand starting in PowerPoint, sending to Word, ...
    (microsoft.public.mac.office.powerpoint)
  • Re: PowerPoint PC/Mac Problems
    ... I'm not saying embedding is stupid. ... I am saying certain types of OLE ... > I still don't understand starting in PowerPoint, sending to Word, ... > need an updated manual in Word format then use Windows PPT 2003 Send To ...
    (microsoft.public.mac.office.powerpoint)
  • Re: PowerPoint PC/Mac Problems
    ... I'm not saying embedding is stupid. ... I am saying certain types of OLE ... I still don't understand starting in PowerPoint, sending to Word, ... >>PowerPoint slides in Word instead of PowerPoint?" ...
    (microsoft.public.mac.office.powerpoint)
  • Re: what is OLE.action
    ... However, in general, OLE, is an acronym for Object Linking and Embedding, ... which is a compound document standard developed by Microsoft. ...
    (microsoft.public.excel.misc)
  • Re: Create Word document from Access Query - Import image based on pat
    ... It involves embedding the file path into an InsertPicture ... This reply is posted in the Newsgroup; please post any follow question or reply ...
    (microsoft.public.word.vba.general)