2011-01-27 83 views

回答

0

演员文档到IPersistFile接口,然后简单地执行 “保存(路径,FALSE)” 的方法:

var iPersistFile = (IPersistFile)this.Application.ActiveDocument; 
iPersistFile.Save("[path]",false); 

一切归功于这些家伙:

http://blogs.msdn.com/b/pranavwagh/archive/2008/04/03/how-to-do-a-save-copy-as-in-word.aspx

https://social.msdn.microsoft.com/Forums/vstudio/en-US/84f1ac3f-f078-4087-a627-351d6bb57173/how-to-get-document-content-in-byte-array?forum=vsto