Compare Source and Destination Documents using .NET

Hi All,

My scenario, i want to compare the source and Destination document,
correctly i am converting destination document to Html after that i compare the source and destination files.

So while converting word doc to Html some of styles missing,
For Ex: In table cell data alignment is center in destination file but after converting html it showing the left side, in compare with source document.
Html = File.ReadAllText(Filepath);
sb = new StringBuilder(Html);
response.Add(sb.ToString());
response.Add(res[3].ToString());
Please suggest what to do.

@knr

We suggest you please read the following article about comparing documents.
Compare Documents

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word documents.
  • Please attach the output file that shows the undesired behavior.
  • Please attach the expected output file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.