Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hello everyone,

I would like to know how this could be possible to embed a wpf user control freshly made into a MS Word document in the same way we used to do with activex control ?

Do you think this is still possible ?

Thank you very much in advance.
Best regards.
MiQi.
Posted
Comments
Sergey Alexandrovich Kryukov 29-Oct-12 13:49pm    
Why would you want it, I wonder?
--SA
SuperMiQi 29-Oct-12 17:33pm    
This is to be able to paste an active control with data together with the text document. This could also be pasted as a static picture.

Do you think this is possible ?

Thank you.
Regards.
MiQI.

1 solution

Wrap the WPF control into a Windows Forms' UserControl via ElementHost, then expose this Windows Forms's Control as ActiveX control, please refer to this article on how to do it:

Exposing Windows Forms Controls as ActiveX controls[^]
 
Share this answer
 
Comments
SuperMiQi 31-Oct-12 10:10am    
Ok, thank you I will have a try.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900