tables and repeating header rows on the next page
- From: "Adrian Maier" <adrian.maier (at) gmail.com>
- Date: Fri, 16 Jun 2006 11:23:18 +0300
On 15/06/06, Adrian Maier <adrian.maier (at) gmail.com> wrote:
> On 15/06/06, bruno <bruno (at) lowagie.com> wrote:
> > Adrian Maier wrote:
> > >I am generating a large table that can span across several pages. And
> > >I'm looking for a solution to repeat the page header on each page.
> > >The problem is that I'm not using PdfPTable ( which has a setHeaderRows
> > >method) but the Table class. I need to generate either pdf or rtf .
> > >
> > >Does anyone happen to know how can i repeat the header rows when
> > >using the Table class ?
> > >
> > Look for the method endHeaders.
> > Use it after you have added the cells that define the header row(s).
>
> Simply adding table.setHeaders() after having added the header's cells
> has no effect. Is there something else that needs to be done?
We've found the solution: table.setLastHeaderRow(0) .
Cheers,
Adrian Maier
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions