OLE Server in .Net

  • Thread starter Thread starter Guest
  • Start date Start date
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!
 
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.
 
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!
 
Back
Top