Column Alignment issue in the HTML Table

Hi,

My requirement is to read a table from the MS Word Document.

But the problem is with the column alignment.

Sharing my code and Input document and output document as an attachment to this post.

My Code

string dataDir = Server.MapPath("Data");
string New = "Input Document";
Document doc = new Document(dataDir + "\\" + New + ".docx");
doc.ToString(SaveFormat.Html);
doc.Save(dataDir + "\\" + "Sample.html");
Document doc1 = new Document(dataDir + "\\ Sample.html");
doc1.Save(dataDir + "\\" + "Output.docx");

Please resolve the issue.

Thanks

Hi Srini,

Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. If you convert your document to Html using MS Word, you will get the same output. However, we have logged this problem in our issue tracking system as WORDSNET-13057. You will be notified via this forum thread once there is any update available on this issue. We apologize for your inconvenience.