Vicente Torrejon Castrillo wrote:
> Hi, I have a large table that requires having a dynamic header and footer. 
> In this case, the table contains financial information for a given customer, 
> and at the table's header you specify the balance brought from 
> the previous page. In the footer you specify the balance carried to 
> the next page. 
> 
> We have done this in the past with a more rudimentary technology, 
> and I'm trying to find how to replicate this report in iText. 
> 
> My understanding is that table.setHeaderRows(x) only works for static 
> content. 
> 
> Can anybody suggest anything that I could use?

I didn't test it yet, but I'd try achieving this with a cell event.
Create an empty cell, attach a cell event and add it to the header.
The content of this cell can be written in your implementation of
the cell event interface. The hard part will be: writing the logic
that calculates the balance. I have some ideas on how to do it, but
that's a programming problem outside the scope of iText.
-- 
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to