The aspose word library has a compare function. Keep in mind this library is not free
Combine revisions from multiple authors into a single document docx from .Net code
It is necessary to agree on a contract between the two parties - organizations.
Each party works with its own copy of the original document. Several employees of one party jointly edit “Copy 1”. At the same time, several employees of the other party jointly edit "Copy 2". Representatives of different parties do not see each other's edits.
After completing the amendments, you need to get a final one document docx in which you can see all the differences between “Copy 1” and original document, marked as revisions of Party 1, as well as all differences between “Copy 2” and original document, marked as revisions of Party 2.
Possible solution:
The original document is compared with “Copy 1” by the “Compare” function of MS Word, with the author of the revisions marked as “Side 1”. The original document is compared with “Copy 2” - marked by the author of the revisions as “Side 2”. Revisions from two documents obtained in this way are combined into one document using the MS Word function “Combine”.
The above logic must be implemented using .Net. We want to avoid using the Microsoft.Office.Interop.Word library. Unfortunately, we did not find any other library with the function analogous to “Combine” in MS Word.