-2
我嘗試通過代碼打開兩個文檔,以使它們對用戶比較版本(合法黑線)可見 - 編輯文檔將在可見文檔中完成。Word自動化使用DefaultLegalBlackline打開兩個文檔來比較文檔
這是我的代碼片段:
objectoMissing = System.Reflection.Missing.Value;
//Start Word and create a new document.
Microsoft.Office.Interop.Word._Application oWord;
Microsoft.Office.Interop.Word._Document oDoc;
oWord = new Microsoft.Office.Interop.Word.Application();
oWord.Visible = true;
oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);
oWord.DefaultLegalBlackline.....