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!

Re: OLE Server in .Net by Dmytro

Dmytro
Wed Jun 29 11:56:25 CDT 2005

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.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


"Luu Sinh Ngoc" <Luu Sinh Ngoc@discussions.microsoft.com> wrote in message
news:04BA59D4-0056-4C85-AA89-587770C67FA5@microsoft.com...
> 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!


Re: OLE Server in .Net by Dmytro

Dmytro
Wed Jun 29 11:58:23 CDT 2005

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!

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


"Luu Sinh Ngoc" <Luu Sinh Ngoc@discussions.microsoft.com> wrote in message
news:04BA59D4-0056-4C85-AA89-587770C67FA5@microsoft.com...
> 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!