(Internal reference: bug 16267)
CompareFiles.zip (575.6 KB)
This bug is slightly different from the others that we have reported recently. This problem will disappear if: text is removed or changed, or header is removed, or foter is removed, or headers are ignored when comparing the documents, or if write rights for users for parts of the document is changed in any way or added.
So there might be more than 1 error in these docs. (Also the filesizes are way to large for the content)
Symmetrical problem, so compare any of the docs in any order, and it will throw exception.
Error occurred in comparing Word documents
GroupDocs.Comparison
at .( [] , [] , CompareOptions , )
at . ( , CompareOptions , SaveOptions )
at GroupDocs.Comparison.Comparer.(Document , Document , CompareOptions , SaveOptions , )
at GroupDocs.Comparison.Comparer.Compare(Stream document, SaveOptions saveOptions, CompareOptions compareOptions)
at GroupDocs.Comparison.Comparer.Compare(Stream document, CompareOptions compareOptions)
at Canea.Common.DocumentFormat.Standard.DocumentContentComparer.Compare(NamedFileDataStream oldestDoc, NamedFileDataStream newestDoc) in C:[CANEA.NET](http://canea.net/)\Framework\dev\Common\Common.DocumentFormat.Standard\DocumentContentComparer.cs:line 42
at Canea.Framework.BLL.Docpoint.Document.DocpointDocumentComparisonHandler.RunComparison(NamedFileDataStream oldestDocument, NamedFileDataStream newestDocument) in C:[CANEA.NET](http://canea.net/)\Framework\dev\Lib\FrameworkLib\BLL\Docpoint\Document\DocpointDocumentComparisonHandler.cs:line 187
compare options:
DetectStyleChanges = false, GenerateSummaryPage = false
(HeaderFootersComparison = true removes this bug)
usage:
using (var comparisonService = new Comparer(oldDoc.DataStream))
{
comparisonService.Add(newDoc.DataStream);
Stream result = new MemoryStream();
comparisonService.Compare(result, CompareOptions);
}
Aspose.PDF 19.9.0
Aspose.Words 19.10.0
(Aspose.Calc 19.10.0)