18.12 Some Notes on HTML Table Formatting
At the time this book was written, some versions of Internet Explorer would not properly display table rows that cross page boundaries. If you will be creating tables that may cross page boundaries, adding the following <meta...> tag (which tells Internet Explorer to use its latest browser display features) to your HTML's <head> section should help work around this problem:
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Report Title</title>
</head>
You may also need to include this <meta...> tag if other more recent formatting features of HTML are not working properly in Internet Explorer. Remember to use two double-quotes when actually writing this line as a Visual Basic string:
PrintLine(iReportFile, _
" <meta http-equiv=""X-UA-Compatible"" content=""IE=edge"" />")
If you are creating large tables, it may also be useful to have the header row(s) repeated at the top of every page. You can accomplish this, in most modern browsers, by including header row(s) inside a set of <thead>...</thead> tags and table data inside a set of <tbody>...</tbody> tags, for example:
<table border="1">
<thead>
<tr>
<th>Header column 1</th>
<th>Header column 2</th>
</tr>
</thead >
<tbody>
<tr>
<td>data row 1 column 1</td>
<td>data row 1 column 2</td>
</tr>
<tr>
<td>data row 2 column 1</td>
<td>data row 2 column 2</td>
</tr>
</tbody>
</table>
In the above example, the <th>...</th> tags will cause most browsers to bold and center the header text within their table cells.