Answered Integrate MS word 2010 in windows form

  • jueves, 21 de octubre de 2010 12:14
     
     

    Hi ,

    I want to open word document inside the windows forms on button click. The document should be open inside the windows form not the separately. I am using office 2010 and vs2010. Please tell me how it is possible? I search on net and found the integration with older versions of office and vs. But its not working in office2010 and vs2010. 

     

    Thanks in advance....

Todas las respuestas

  • lunes, 25 de octubre de 2010 3:17
    Moderador
     
     Respondida

    Hellp Simplyvaibh,

     Here are two approaches to opening word document inside a Winfodws form.
    1. Using WebBrowser control to open (but without menubar and toolbar).
           
    WebBrowser1.Navigate(@"C:\myDocment.doc");

    2. Write our own control to use MS-Word in our own application like a windows-form,see to :Word Control for .NET on code project.

    For more about this topic, you can also refer to the following threads:

    MS Word control in C#.net Win Form
    http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/b49659d2-2bb5-4206-bad4-33c8499416dd see the reply from me and Saffy.

    Is there a way to embed a Microsoft Word document to a Windows form?
    http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/5b6e25d3-75e0-4f77-9483-82cc8fc79e9d

     

    Sincerely,
    Helen Zhou

     


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • miércoles, 31 de agosto de 2011 16:02
     
     
    Negative this method does not work it opens the windows form outside the web browser or even a axWebBrowser. The rules have changed in 2010 vs prior to 2007 versions
  • miércoles, 07 de septiembre de 2011 14:31
     
     

    Hi,

    I have the same problem. I need to open a .doc document inside a webbrowser control. The application runs without problem if the Office is different to 2010. It is necessary to find the solution because many computers are migrating to office 2010.

    Regards.