Compare method returns null


#1

Hi.


I’m using trial version to evaluate some features. I downloaded example code and I’m tryng to compare two documents. When I invoke Compare() method, it returns always null.

What it means? Two documents are differents. This is the code:

Stream sourceStream = File.Open(Path.Combine(Common.sourcePath, Common.sourceFile), FileMode.Open, FileAccess.Read);
Stream targetStream = File.Open(Path.Combine(Common.targetPath, Common.targetFile), FileMode.Open, FileAccess.Read);

ComparisonSettings set = new ComparisonSettings();
set.DetailLevel = DetailLevel.Hight;

// Get instance of GroupDocs.Comparison.Comparer and call method Compare.
GroupDocs.Comparison.Comparer comparison = Common.getComparison();
ICompareResult result = comparison.Compare(sourceStream, targetStream, set);

// get result document as stream.
Stream stream = result.GetStream();

sourceStream.Close();
targetStream.Close();
stream.Close();

Thx


#2

@daniele.busseda

Thank you for giving a try to GroupDocs.Comparison .NET API.

We are sorry to hear that you are facing such issues. We are unable to reproduce this scenario. Kindly share you source and targets file to reproduce this scenario at our end, So we can provide you more appropriate solution.


Warm Regards,