Preserve Borders around Table Header Row during Word DOCX to HTML File Conversion using C# .NET

Hello, I have alignment issues when we saved word document to HTML. The alignment issues are mostly on tables. Will i be able to get any help. Thanks


Please ZIP and attach the following resources here for testing:

  • Your simplified input Word document
  • Aspose.Words for .NET 20.8 generated HTML file showing the undesired behavior
  • Your expected HTML file showing the desired output. You can create this document by using MS Word.
  • A comparison screenshot highlighting the problematic areas in this Aspose.Words 20.8 generated HTML file (with respect to your expected file)

As soon as you get these pieces of information ready, we will start investigation into your particular scenario and provide you more information.

P.S: It is safe to attach files in the forum. If you attach your documents/resources here, only you and Aspose staff members can view/download them. You can also remove any sensitive information from documents by replacing it with dummy data instead. (33.6 KB)
Hi Hafeez,

Thank you very much for the reply. I have attached the necessary documents, thanks


Your contains only a screenshot; please also provide actual 1) template Word document and the 2) output HTML file. Please also create a standalone simple 3) Console application (source code without compilation errors) that helps us to reproduce your current problem on our end and attach it here for testing. Please do not include Aspose.Words DLL files in it to reduce the file size. (5.5 MB)
Hi Hafeez,

Thank you very much for the reply. I have attached the necessary files, Table is missing the borders for the header. thanks


We have logged this problem (of missing borders around Table header during Word to HTML conversion) in our issue tracking system. The ID of this issue is WORDSNET-21028. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.