看我作的完整的例子,一定可以完成你的任务,给分吧:
http://www.uncj.net/bbs/dispbbs.asp?boardID=2&ID=8454

解决方案 »

  1.   

    Word.Documents docs = word.Documents;
    Word.Document doc =....
    ...
    object saveChanges = System.Reflection.Missing.Value;
    object originalFormat = System.Reflection.Missing.Value;
    object routeDocument = System.Reflection.Missing.Value;
    docs.Close(ref saveChanges, ref originalFormat, ref routeDocument);
    doc.Close(ref saveChanges, ref originalFormat, ref routeDocument);
    ...
    wordType.InvokeMember("Quit"..
    我最后用了这个.不过还是很感谢,给分,人人有份!!