10/24/2017 - 5:10 PM


// For complete examples and data files, please go to

/// Compare two documents from file path with saving results into a file
        public static void CompareDcumentsFromPathToOutputFile()
            // Get instance of GroupDocs.Comparison.Comparer and call method Compare.
            GroupDocs.Comparison.Comparer comparison = Common.getComparison();
            ICompareResult result = comparison.Compare(Path.Combine(Common.sourcePath, Common.sourceFile), Path.Combine(Common.targetPath, Common.targetFile), new ComparisonSettings());

            // save result document to a file.
            result.SaveDocument(Path.Combine(Common.resultPath, Common.resultFile));