Below is the code we are using.
using (Comparer comparer = new Comparer(“C://Reports//Source.docx”))//Master File
comparer.Add(“C://Reports//Target.docx”);//Entity Specific file
CompareOptions compareOptions = new CompareOptions();
compareOptions.ShowRevisions = false;
Including the 1.Source.docx and 2.Target.docx and the 3.Finalresult.docx files.
- You will see the “Finalresult.docx” file contains the difference in blue text. Is there any way the “Finalresult.docx” file could only show the final merged file [Example: Keeping the changes in “Target.docx” and removing the changes not found in “Target.docx”]
- What is expected is if the “Source.docx” has changes then that changes would be merged to “Target.docx” while keeping any changes local to “Target.docx” untouched.
Source.docx (14.4 KB)
Target.docx (14.5 KB)
Finalresult.docx (10.3 KB)