The following code snippets show how to compare documents with a manually specified file type:
Compare documents from local disk and specify file type for comparison manually
usingGroupDocs.Comparison;usingGroupDocs.Comparison.Options;// ...stringsourcePath=@"source.docx";stringtargetPath=@"target.docx";stringresultPath=@"result.docx";// Create load options and set the file typeLoadOptionsloadOptions=newLoadOptions();loadOptions.FileType=FileType.DOCX;using(Comparercomparer=newComparer(sourcePath,loadOptions)){// Add target documentcomparer.Add(targetPath,loadOptions);// Compare and save comparison resultcomparer.Compare(resultPath);}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.