I need to generate a printable report (pdf if possible) with a:
1) Header - Dynamic Height based on recordset output
2) Body - Recordset output, may carry over to multiple pages
3) Footer - Dynamic Height based on recordset out
In short, the whole page is dynamic- The header and footer need to be on every page and whatever height is left over to fit within the print area goes to the body and the line item output of each record (think invoice). Then the number of pages will depend on how long it takes to output the body recordset (but the header and footer MUST be on each page).
I have been trying to get this to work using cfdocument since CF7 and have never had any luck. It has not worked due to the reason that since the header and footer are dynamic height, I do not have any way to set the margins properly on page generation (so it shrinks the header or leaves excess whitespace).
Anyone recommend the best way to go about this? I have heard about the report builder and am not sure if that will fit these requirements. I appreciate any assistance!