We have a Windows desktop application, where we use HTML for printing reports, using whichever IE is installed on the client machine. Currently, it's IE6, IE7 and IE8. Changing to another browser is unfortunatly not an option.
There is often a request from our clients to have a custom footer on every printed page with their company information, and a small logo. The way we solve it right now is quite an ugly hack, something like this:
<td style="height:1500px;"> </td>
That is, wrap all content in the report in a table with a tfoot, and have a very tall <td> in the bottom of <tbody> to push down <tfoot> to the bottom of the page. It's a hack, and it only works in quirks mode in IE, but at least it works.
The problem is when that wrapping table needs tables inside it, with their own <thead> and <tfoot>, that needs to be repeated if the table laps over multiple pages. It simply doesn't work. What I've done in these situations is to tell the client that for a report that needs multiple tables, a footer on the bottom of every page isn't possible. And then removed the wrapping table, forced IE out of quirks mode, and everything works quite nicely.
But is there any way to get a custom footer at the bottom of every printed page? Every alternative is interesting to me, even if it involves changing registry keys, etc. The dream is to make it work for IE6 as well, but I realize that the odds for that are pretty slim.