vb.net對doc文件進行處理,批量接受全部修訂

 在處理文檔的時候遇到一個問題,不知道怎麼修訂,後面在文檔中終於翻到了。code

部分代碼文檔

Dim tgtDocument As Microsoft.Office.Interop.Word.Document
Dim tgtWordApp As New Microsoft.Office.Interop.Word.Application
//打開目標文檔
tgtDocument = tgtWordApp.Documents.Open(tgtFile, [ReadOnly]:=0)
//接受修訂
tgtDocument.Revisions.AcceptAll()
相關文章
相關標籤/搜索