Answered by:
Embedding Word in a WPF Application

Question
-
We currently have a VSTO addin for word, and we're currently reworking our product suite to be a single window design. Is there any way to embed word into a WPF window.
If so, how?
Wednesday, June 3, 2015 2:50 PM
Answers
-
Hello,
Office applications doesn't support embedding into other applications. You need to use any third-party components for rendering documents on the WPF application.
- Proposed as answer by Fei XueMicrosoft employee Thursday, June 4, 2015 5:10 AM
- Marked as answer by DragonLord66 Thursday, June 4, 2015 8:36 AM
Wednesday, June 3, 2015 3:36 PM -
Don't want to advertise any components there, it is up to you which one is to choose. You may find TextControl or RadRichTextBox helpful.
- Marked as answer by DragonLord66 Thursday, June 4, 2015 8:36 AM
Wednesday, June 3, 2015 3:42 PM
All replies
-
Hello,
Office applications doesn't support embedding into other applications. You need to use any third-party components for rendering documents on the WPF application.
- Proposed as answer by Fei XueMicrosoft employee Thursday, June 4, 2015 5:10 AM
- Marked as answer by DragonLord66 Thursday, June 4, 2015 8:36 AM
Wednesday, June 3, 2015 3:36 PM -
Are there any that you can recommend?Wednesday, June 3, 2015 3:37 PM
-
Don't want to advertise any components there, it is up to you which one is to choose. You may find TextControl or RadRichTextBox helpful.
- Marked as answer by DragonLord66 Thursday, June 4, 2015 8:36 AM
Wednesday, June 3, 2015 3:42 PM -
Hi ,
Office application is not designed for host in other applicaiton, as Eugene sggested Office doesn't support it.
To instead of embedding Word in a WPF application, we can consider to create an VSTO add-in to display the WPF application.
Here are some helpful links for your reference:
Programming Application-Level Add-InsUsing WPF Controls in Office Solutions
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Thursday, June 4, 2015 5:10 AM -
I couldn't embed the application in office as it's one of the addins to the main application that needs word.Thursday, June 4, 2015 8:37 AM
-
If you only want to display the content of a document and not edit it, windows PreviewHandlers do a pretty good job.
See Brad Smith's guide to implementing them in .net here http://www.brad-smith.info/blog/archives/183
Friday, June 5, 2015 10:12 AM -
Thanks for that, never seen them before.Friday, June 5, 2015 10:14 AM
-
If you want some third-part component, Acoeffix can be one of your alternative. It can be embed in an application and call all functions of MS Office online.Thursday, November 5, 2015 7:47 AM