Here’s my html code inside the C# code
tosend = "<p><tr><th>The directory searched: " + path + " </th><th> between the dates " + fdate + " and " + ldate + "</th></tr> <br> </p> <tr><th>File Name</th> <th>File Date</th> <th>File Hash</th> <th>Beamer Date</th> <th>Beamer Hash</th> <th>Status</th></tr>";
for (int i = 0; i < thexfiles.Length; i++)
{
tosend = tosend + "<tr><td>" + thexfiles[i] + "</td><td>" + filedate[i] + "</td><td>" + hashList[i] + "</td><td>" + thexdates[i] + "</td><td>" + beamerHash[i] + "</td><td>" +status[i] + "</td></tr>";
}
tosend = "<html><table border="+1+">" + tosend + "</table></html>";
and here’s a link of how it looks : Click Here
What I want to do is,
- I want to extend the first row that it becomes same size of the other rows,
- as you can see the date rows and the status row’s height are too much, i want them to look as a single line, like expand.
That’s all I need, so far I have tried normal html width-height etc, I couldn’t succeed probably because of wrong notation.
You can use
colspan="100%"to expand the first row (or use a set number of columns). Beyond that, you simply have too much data that you’re trying to squeeze into a small area. You’ll have to chop off the time or remove a column to get the row heights working properly with the data you have. You could also force the longer columns to give more room to the other columns, but would cause them to wrap as well.Also note that the
<br></>p>tags between rows is not valid HTML.