Team,
I want to create a HTML table in below format. Please help in sharing sample code
Hi @Honda ,
Use below logic to build the html table
htmlTable = "<table border='1'><tr><th>Col1</th><th>Col2</th><th>Col3</th><th>Col4</th><th>Col5</th><th>Col6</th><th>Status</th></tr>"
For Each row In yourDataTable.Rows
htmlTable &= "<tr>"
For Each item In row.ItemArray
htmlTable &= "<td>" & item.ToString & "</td>"
Next
htmlTable &= "</tr>"
Next
htmlTable &= "</table>"
Regards,
Arivu
Thanks for your response. I am not going to use it inside the code. This is just an static email template. Pls share the full html code based on the format mentioned.
use create html content add the datatable in it and then the output string would be the required html
cheers