J J wrote:
Is there a good way in PHP to determine page breaks
for long reports and printing? I'd like to be able to
best determine where pages should begin and end and
reprint things like table/page headers and footers on
each page so the reports print nicely.
Just use HTML thead/tfoot elements and let the browser do it for you:
<table>
<thead>
<tr>
<th>Something</th>
<th>Something</th>
<th>Something</th>
<tr>
</thead>
<tbody>
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
</tr>
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">Footer</td>
</tr>
</tfoot>
</table>
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php