Reserve space for table header on every page(different mechanisms may be
used a simple one could be to have empty table header row) then using a
single tableLayout event you can draw the table header on the reserved space
using canvases provided as a parameter of tableLayout method.
How to differentiate between the first page and remaining pages?
If you keep a flag default to false on tableEventHandler and set it to true
after the first time it hits tableLayout event. That flag will tell you if
the current table is a continuation on a new page or not. Alternatively you
might look at page numbers.
If requirements get even more complicated please take a look at the new
PdfPTableEventSplit that was added with iText v5.0.5 I believe. This will
inform you of a table split operation before it callsback tableLayout
method, so combining both you can easily achieve more complicated stuff.
Good luck.
On Mon, Dec 27, 2010 at 10:04 AM, Siri <[email protected]> wrote:
>
> Hi Thanks for your quick response.
> you are right I could get headers with the example given in iText 2nd
> edition(page 113) using setHeaderRows().
> But my Table has a Header and this Header has to be modified(has to
> appended
> with "Continued") if tabled is spilled over more than one page.
> Can you please tell how can i achieve this?
> Thanks
> Siri
> --
> View this message in context:
> http://itext-general.2136553.n4.nabble.com/Tableheader-continued-tp3164941p3165076.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
--
Nurettin DAG
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php