-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.....