w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Enable built-in Microsoft Word button controls with Microsoft.Office.Interop.Word

Possible solutions of your problems:

Ad 1. but first, you need to open your documents with ReadOnly: false while,according to both C# and VBA test it will not work when you set parameters to ReadOnly: true:

((Word._Document)diffDocument).Windows.CompareSideBySideWith(originalDocument);

Ad 2. this time you need to refer to window object of Word Application. Here is code for active window:

appWRD.ActiveWindow.View.SplitSpecial =
Word.WdSpecialPane.wdPaneRevisionsVert;

where: appWRD is Word.Application in my code.

Ad 1 again. (one above was a result of misunderstanding).

According to some test this code should give you what you need:

appWRD.ActiveWindow.ShowSourceDocuments =
Word.WdShowSourceDocuments.wdShowSourceDocumentsBoth;




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.