Coldfusion - Dynamic Page Break
I have a form which has a table which may contain 0 rows or several rows.
The problem is that if there are several rows I want close the table on
the first page before the content spills over to the next page. Then
create another table for the rest of the rows on the next page along with
a nice header and table headings. The hard part is, because characters
have different widths and I can't predict what the user will type, it's
hard to calculate how many characters can fit on a row and how many rows
can fit on a page. Also if the user types something in some of the row
data, it wraps to a 2nd row. The printout looks bad when the row has only
a few rows because there is a lot of whitespace on the bottom so I was
thinking of adding in blank rows to fill it up. But again, I won't exactly
know how many rows I need to fill before it spills onto the next page.
Does anyone have a solution to this?
No comments:
Post a Comment