locked
How to Host Office in WPf RRS feed

  • Question

  • I want to host Entire Office application in WPF so that it can open , read , save and EDIT like a standalone office application does.  Any ideas ?
    • Moved by Cindy Meister MVP Friday, October 29, 2010 7:10 AM not VSTO technology (From:Visual Studio Tools for Office)
    Thursday, October 28, 2010 6:21 PM

All replies

  • Hello Tushar,

    Thanks for posting. Here are some resources about how to host office documents. Wish they could help you.

    How to use the WebBrowser control to open Office documents in Visual C# 2005 or in Visual C# .NET:
    http://support.microsoft.com/kb/304662.

    How to host word as a OLE/ActiveX control in WPF:
    http://social.msdn.microsoft.com/forums/en-US/wpf/thread/de321252-b7d2-4fc9-824b-d2b665209f40/.

    Hosting Office in a WPF Application:
    http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/

    If you have any concern on this post, or this post does not help you, just feel free to follow up. Have a nice day.

    Best regards,
    Bessie


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, November 1, 2010 7:26 AM
  • Thanks Bessie,

                         I have already looked at those pages before posting here. The second link has knowledge base articles which dont exist anymore. The last link has DSOframer which is no more supported by microsoft .

                         I have used the Webbrowser control to open excel(any other file types) files. But is there a way to edit and save them using web browser control or any other control. How do i do that ?

    Monday, November 1, 2010 7:25 PM
  • Hello again Tushru,

    To open the office documents in Web browser control, I have changed the registries by following this kb aricle: http://support.microsoft.com/kb/927009/. If you are also ready to use this KB article, please backup the originally values first. As the testing result in my side, we also could edit the file (add some text to a cell) and save it by pressing ctrl+s. Do you perform these actions in your side?

    Best regards,
    Bessie


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Tuesday, November 2, 2010 7:46 AM
  • Hi Bessie,

                  Yes the web browser opens the excel files but the standard excel toolbar is missing. I want the standard excel look so that people who do not know the shortcuts can use it with ease. Also the excel toolbar offers many advanced and helpful functionalities. The web browser control can open pdf files in acrobat reader with the toolbar , i want a similar look when excel files are opened with Web browser control.

    Thanks,

    Tushar

    Tuesday, November 2, 2010 2:46 PM