I have a document with deeply nested tables; that is, a table within a table within a table (up to 6 levels!). Every time I start a new page, I need to repeat the table headers for each level of nested tables, and add something like "(continued)" on each one that wasn't there the first time the header was displayed.
Because PdfPTable rows can't span multiple pages, I'm controlling page breaks manually, closing out each table at the end of the each page, and regenerating it at the start of the new page. But the way I read the code, fitsPage considers the totalHeight to determine if a table fits or not, and totalHeight doesn't get recalculated until a row is completed. Fine for normal cases, but if I'm 5 tables deep, trying to temporarily pad cells to complete the last row in the current table, and its parent table, and its parent's parent table, etc. is a real pain, and each then has to be removed (since I can't add cells to the nested table after it's been added to its parent). Is there anyway to force a PdfPTable to calculate it's height when the last row isn't yet complete? Or better yet, to determine if a table will fit on a page without adding all of it's nested tables and then having to remove them after each cell addition? (Since end users of my app will essentially generate their own reports though simplified templates, trying to do absolute positioning would be absurdly difficult in this context). Any pointers greatly appreciated! ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Stuff, things, and much much more. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
