troubleshooting Question

Page Length / Line Counting for Printing Layout

Avatar of garyttu
garyttu asked on
HTMLColdFusion Language
4 Comments1 Solution1196 ViewsLast Modified:
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?
ASKER CERTIFIED SOLUTION
reitzen

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros