2011-01-27 149 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