have a requirement of comparing a flat file with a word document.
I am using StreamReader to read the flat file and Microsoft.Office.Interop.Word.Application to read the word document.
The issue I am facing is the special characters are not read properly from the flat file. If I change the encoding of the content that is read, while I debug I am able to see the special character as it is supposed to be, but it doesn’t match with that from the word document and it is shown as a difference.
Is somebody aware of a solution for this?
Because of Word document format you may get the difference while compare the special characters of flat file and word-doc file.
So convert those special characters into ASCII/Unicode of both flat file and word-doc file and then compare those values.
No comments:
Post a Comment