OLE Server in .Net

G

Guest

For example : I want to implement such feaures :

User copy some objects from a C# or VB.net WinForm application and paste
into a Word Document. When user double click the object in the Word Document,
the application is started to show the object in application and user can
manipulate that object.

How to do it in .NET world? Thanks!
 
D

Dmytro Lapshyn [MVP]

Hi,

I'm afraid OLE in-place active objects are not supported by the Framework.
Whereas I've heard it is possible to register a WinForms user control as an
ActiveX control (probably by applying the ComVisible atttribute), there
might still be a lot of work to do to turn it into a full-blown OLE in-place
object.

See the MSDN docs on the IOleInPlaceActiveObject for example.
 
D

Dmytro Lapshyn [MVP]

To follow up: it seems that the Control class already implements
IOleInPlaceActiveObject, so if you manage to expose your UserControl as an
ActiveX object and register it under an appropriate category in the
registry, this might be all you need!
 

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