Issue in HTMLTable

Hi,
Can you please suggest that how can fix below table alignment issue. After using long text in table cell table formatting is distorted. As I am using version Aspose.Words(16.1.0.0)
as I am using below code to generate the table.

Below table issue in word report.

@RiteshK10 Could you please attach your source HTML and output document here for our reference. Also, you are using quite old version of Aspose.Words, which was released about 7 years ago. I would suggest you to update the the latest 23.2 version of Aspose.Words.

Hello,
I have shared used html and DOC please check and suggest to fix formatting issue.

<table width='100%' style='border-collapse:collapse;border-spacing:0px;font-size:10pt;font-family:&quot;Helvetica&quot;,sans-serif;'><tr style='border-top:1px solid #0070C0;border-bottom:1px solid #0070C0;'>                                    <td style='color:#0070C0;border-right:1px dotted #0070C0;'>No.</td>                                    <td style='color:#0070C0;border-right:1px dotted #0070C0;'>xxxx(x)</td>                                    <td style='color:#0070C0;border-right:1px dotted #0070C0;'>xxxx xxxxxx(x)</td>                                    <td style='color:#0070C0;border-right:1px dotted #0070C0;'>xxxxx(x)</td>                                    <td style='color:#0070C0;border-right:1px dotted #0070C0;'>xxxxxxxxx(x)</td>                                    <td style='color:#0070C0;border-right:1px dotted #0070C0;'>xxxxx(x)</td>                                    <td style='color:#0070C0;'>xxxxxx(x)/xxxxxx(xx)</td>                                </tr><tr style='border-bottom:1px dotted #0070C0;background-color:#f9f9f9'><td valign='top' style='padding:10px 2px;border-right:1px dotted #0070C0;'><p style='margin:0in;margin-bottom:.0001pt;text-align:justify;line-height:15.0pt;font-size:10pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#404040;'>1</p></td><td valign='top' style='padding:10px 2px;border-right:1px dotted #0070C0;'><p style='margin:0in;margin-bottom:.0001pt;text-align:justify;line-height:15.0pt;font-size:10pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#404040;'>15 September 2022</p></td><td valign='top' style='padding:10px 2px;border-right:1px dotted #0070C0;'><p style='margin:0in;margin-bottom:.0001pt;text-align:justify;line-height:15.0pt;font-size:10pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#404040;'><b>Amit_New_Test_Party</ b> </p></td><td valign='top' style='padding:10px 2px;border-right:1px dotted #0070C0;'><p style='margin:0in;margin-bottom:.0001pt;text-align:justify;line-height:15.0pt;font-size:10pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#404040;'><b>Amit_New_Test_Party</ b> </p></td><td valign='top' style='padding:10px 2px;border-right:1px dotted #0070C0;'><p style='margin:0in;margin-bottom:.0001pt;text-align:justify;line-height:15.0pt;font-size:10pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#404040;'> <b>Amit_New_Test_Party</b></p></td><td valign='top' style='padding:10px 2px;border-right:1px dotted #0070C0;'><p style='margin:0in;margin-bottom:.0001pt;text-align:justify;line-height:15.0pt;font-size:10pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#404040;'> cause 1 <b>Amit_New_Test_Party</b> </p></td><td valign='top' style='padding:10px 2px;'><p style='margin:0in;margin-bottom:.0001pt;text-align:justify;line-height:15.0pt;font-size:10pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#404040;'> Result <b>Amit_New_Test_Party</b> #Source_0_</p></td></tr></table>

We are not able to upload .Docm format file as for your reference.

So we are changing it in .Docm to .Docx
Testing_Documnet_Formatting_Issue.docx (42.4 KB)
I have attached screen shot.

@RiteshK10 I cannot reproduce the problem on my side using the latest version of Aspose.Words. I have used the following simple code for testing:

Document doc = new Document(@"C:\Temp\in.html");
doc.Save(@"C:\Temp\out.docx");

Here is the output document produced on my side: out.docx (7.7 KB)