Free Support Forum -

Compare two documents from URL paths in .NET

I’m getting mixed messages from the site documentation. I need to compare 2 word files found from URL paths. I see “Compare From Streams” methods (, but I have also read in the forums that streams are not supported.

Can I use GroupDocs to compare the word documents using a URL path?



GroupDocs.Comparison for .NET API supports following ways to load a document for comparison:

Have a look at the code below:

using (Stream sourceStream = File.OpenRead(Constants.SOURCE_WORD))
using (Stream targetStream = File.OpenRead(Constants.TARGET_WORD))
      using (Comparer comparer = new Comparer(sourceStream))

Please download sample application here.