It may be possible to do what you're talking about with CSS (cascading style sheets). Try taking a look at the
@media print
command and the
page-break-before
page-break-after
rules (the options for which appear to be auto, always, and none). @media print says that the browser should use the rules contained within the command to style the page when it is being printed (as opposed to being rendered on screen). page-break-before and page-break-after allow you to determine whether or not a page break comes before or after a certain element of a certain class. You could have every nth row of your table have class=break, then have a CSS rule that looks like:
@media print {
.break{
page-break-before: always;
}
}
It would not surprise me at all to learn that browser support for this type of CSS is spotty at best.
Good luck.
Jay Eckles
www.jayeckles.com