打开一个word文档,显示在一个winform窗体中,然后可以对它进行编辑修改.

解决方案 »

  1.   

    Object oMissing = System.Reflection.Missing.Value;
    Word.Application Word_App=new Word.Application();
    Word.Document Word_doc=new Word.Document();
    Word.Documents Docs = Word_App.Documents;
    Word._Document my_Doc= (Word._Document) Word_doc;
    object FileName=@"c:\aa.doc";
    Word_doc=Docs.Open(ref FileName,ref oMissing, ref oMissing, ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing);
    Word_App.Visible =true;
      

  2.   

    INFO: Writing Automation Clients for Multiple Office Versions
    http://support.microsoft.com/default.aspx?scid=KB;EN-US;244167INFO: Using Early Binding and Late Binding in Automation
    http://support.microsoft.com/default.aspx?scid=KB;EN-US;245115HOW TO: Binding for Office Automation Servers with Visual C# .NET
    http://support.microsoft.com/default.aspx?scid=KB;EN-US;302902INFO: Develop Microsoft Office Solutions with Visual Studio .NET
    http://support.microsoft.com/default.aspx?scid=KB;EN-US;311452
      

  3.   

    xiongchen(二氧化鬼)的方法不能把word装在winform的窗体里,而是调用word,打开了word的应用程序.
      

  4.   

    要在WINFORM上显示要用到AxWebBrowser控件的ExcuWB方法,你可以查查我以前的贴子
      

  5.   

    我有一个示例就是打开word显示在winform中,然后保存,要的话和我联系,[email protected]
      

  6.   

    能说明下怎么用AxWebBrowser控件的ExcuWB方法吗?
      

  7.   

    xiaomatian(趴趴熊◎%#……※×) :
    朋友给我发一份,谢谢!
    [email protected]