----- original Nachricht -------- Betreff: Table size spanning pages Gesendet: Di 14 Mär 2006 15:13:22 CET Von: "Noll,Jeffrey T HS"<[EMAIL PROTECTED]>
> I've run into a problem with formatting a table for an invoice. > > What I'm looking to do is for the table footer to be placed in the same > location on the last page of the invoice. IE: the total invoice value and > summary notes should be placed 1" from the bottom of the page. What's > happening now is that the footer is getting printed whever the table leaves > off. The footer is static content defined for every page of a page flow (as well as the header is). So if you include some value into the footer, it will occur on every page of the flow, containing your table. Maybe the table is 3 pages long, which leads to the total sum being displayed on page 1, 2 and 3 - right!? If I'm right, you can't do this with footer (static content) and have to track the table's end. The best way to do this, is to insert an invisible footnote into the last column (or below it, if footnotes inside tables won't work). Now all you have to do is to format your footnote rendering the way you prefer it. This ensures, that the footnotes content will be rendered at the bottom of the last page (if included inside the last table row or underneath it). > > Is there any way to force it so that the table fills to a certain size on > each page? I've thought about padding with table-rows but I can't figure > out > how many I need to add because of variable text lengths that wrap previous > row sizes. This is not your task, this is FOP's job *g*. I'm thinking about another way... > > Any advice on how to handle this? When paging through invoices people would > like to have the location of table footer in the same location. > Mkay, another way would be to split up the table into fixed sized chunks. If you know, that the maximum length of a table needs 25 table rows, you could split after every 25 lines, format your footer the way you like it (as static content) and stuff every table into it's own page flow. Both sollutions are not very fancy, but they'll do it... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
