This project has moved. For the latest updates, please go here.

EMBEDDING NETOFFICE IN WPF

Oct 1, 2014 at 4:05 PM
Edited Oct 1, 2014 at 4:05 PM
Hello,

How can I embedd NetOffice in a WPF project. I would like use a canvas or a user control for view word document.

Thank you.
Gabriele
Coordinator
Oct 2, 2014 at 10:23 AM
hello,

this answer is related to your mail(codeplex direct message):

"The code is right but I want that the Word window open in my window."

This means you doesnt see a new word application or the new word application is not shown in your window? (as a child, in other words: its still on the desktop)

For the second scenario: You have to know, embedd an office application is unsupported in .NET but you can resolve this with few Win32 API code. Moreover you find a lot of example topics/projects on stackoverflow for a workarround.
for example:
http://stackoverflow.com/questions/6197358/embedding-word-2010-editor-in-a-wpf-application
or
http://www.codeproject.com/Tips/487566/OLE-container-surrogate-for-NET (may you know the OLE container from the good old times...)

*Sebastian