I have a document I am laying out in CFM/HTML or CFM/CFDocument (undecided) to be used for printing. The document consists of 3 tables (top,middle,bottom) of information (a header, footer, and body). I have tried to use cfdocument's header/footer capabilities, but they are limited since in the 'header' and 'footer' part of my page are just as long as the body as they contain multiple cells of output data. (This usually doesn't work well with cfdocument if the header and footer are more than just a line or two). Each page must look the exact same for printing in that the top and bottom tables must look the exact same on each printed page and it prints as many pages as necessary to display the body (middle table) information. The problem is the middle table contents are dynamic and can span a number of records each with multiple lines. This results in making the page length too long and it cuts off the bottom table before page breaking and restarting with the top table.
Does anyone know of any way to 'count' how long the page will be if I display a record and if it is too long, stop display on that row, display the bottom table, break, and start the top table on the next page?