![]() One step ahead of just comparing, using the code similar to the mentioned below, you can compare multiple documents with your customized comparison settings.ĬompareOptions provides you the opportunity to specify your comparison options like font styling for detected changes etc. using (Comparer comparer = new Comparer("source.docx", new LoadOptions() ) Ĭomparison of Documents with Specific Settings # Below is the sample comparison code for your assistance. While loading the document, use LoadOptions to specify the document password. Just a little change in the code as compared to the code for comparing documents that are not password-protected. NET API, it allows its users/developers to compare password-protected documents. ![]() Password protection is common in the official documentation. Using (Comparer comparer = new Comparer(File.OpenRead(“source.docx”))Ĭomparer.Add(File.OpenRead(“target1.docx”)) Ĭomparer.Add(File.OpenRead(“target2.docx”)) Ĭomparer.Add(File.OpenRead(“target3.docx”)) Ĭomparer.Compare(File.Create(“result.docx”)) Ĭompare Password Protected Word Documents / Excel Spreadsheet in C# Call Add method and specify the target stream. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |