I have attached code pls check and suggest me any other way to do.
input123.docx (12.2 KB)
@QATESTGHS As I can see valign works as expected. Here is a simple HTML I have used for testing:
<html>
<body>
<table border="1">
<tr style="height:50pt;">
<td valign="top">Top</td>
<td valign="middle">Center</td>
<td valign="bottom">Bottom</td>
</tr>
</table>
</body>
</html>
Here are test code and produced output:
Document doc = new Document(@"C:\Temp\in.html");
doc.Save(@"C:\Temp\out.docx");
out.docx (7.8 KB)