本帖最后由 suzhongyu1 于 2011-03-16 21:07:25 编辑

解决方案 »

  1.   


    1 private string ResumeWord(string path)
     2 {
     3    string str = string.Empty;
     4    Document myWordDoc; 
     5    Microsoft.Office.Interop.Word.Application myWordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
     6  
     7    object filepath = path;
     8    object oMissing = Missing.Value;
     9   
    10    myWordDoc = myWordApp.Documents.Open(ref filepath, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
    11          ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
    12          ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
    13    str = myWordDoc.Content.Text;
    14  
    15    return str;
    16 } 
      

  2.   

    或者参考
    http://topic.csdn.net/u/20100530/15/5b272e55-1b54-4eed-b5bd-f0dd34295dae.htmlhttp://www.codeproject.com/KB/office/Word_Automation.aspx