So this is problem, I am building this report engine for work. The data can be long that sometimes contains a lot of tables and charts. Sometimes the tables can be very long and can appear almost anywhere in the page. If the table is long when we print it, people wants to see the table header/ caption to contain something like "Continued table from Table A" in the captions or maybe in the table header of the next page it continues. Is this possible?
<html>
<table>
<caption>Initial Caption</caption>
<thead>
<th>header 1</th>
<th>header 2 </th>
</thead>
<tbody>
<tr>
<td>column 1</td>
<td>column 2</td>
</tr>
<tr>
<td>cell 2</td>
<td>cell 2</td>
</tr>
</tbody>
</table>
</html>
Now when I print it, in the off chance that it cuts off between row 1 an row 2. When the header/ caption repeat I would have "Continued page of Initial Caption" or "Continued Page ..." in the header as new row within the header
I tried doing some media="print" with CSS but nothing seems to work.