I have seen this similar question.
(I highlighted the important bits to make skim-reading the question faster)
To add to it though, I would like to format an HTML table (with a lot of rows) in such a way that when printed, it would repeat the table headers after each page break. Another words, for the table headers to be visible at the top of each printed page.
Some things I have tried was, when generating the HTML, counting the number of rows, then putting blank rows where I was expecting a page break to occur. At this point I would put in the table headers again.
However, depending on what printer is used, the page breaks end up in different spots. Because each printer seems to have slightly different margin settings, font sizes, etc...
This of course, throws off this whole idea of predicting where a page break will occur.
What strategies do other people use to print HTML tables/forms while maintaining proper formatting?
any ideas?