Hi
I have below code and I want that Header should have BackGround color.
htmlTable.Append("");
// Add headers to the table
htmlTable.Append("");
htmlTable.Append("Transaction ID ");
htmlTable.Append("Doc. No ");
htmlTable.Append("Doc. Date ");
htmlTable.Append(" ");
while (!oRecordSet.EoF)
{
htmlTable.Append("");
htmlTable.Append("" + oRecordSet.Fields.Item("TransId").Value.ToString() + " ");
htmlTable.Append("" + oRecordSet.Fields.Item("DocNum").Value.ToString() + " ");
htmlTable.Append("" + oRecordSet.Fields.Item("DocDate").Value.ToString() + " ");
htmlTable.Append(" ");
oRecordSet.MoveNext();
}
htmlTable.Append("
");
Font Name - Calibri
Font Size - 8
Thanks
Muhammad Imran AnsariPosted Feb 7, 2025, 6:23 PM
Hello Ramco,
Instead of using inline styles, you can define a
block in your HTML to keep the structure clean. Here’s how you can do it:Sarthak VarshneyPosted Feb 7, 2025, 1:59 PM