PdfPTable.writeSelectedRows() will write the rows and columns you
require.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Peter Hild
> Sent: Monday, November 19, 2007 1:21 PM
> To: [email protected]
> Subject: [iText-questions] How to split a large table (too
> many columns and too many rows) onto many pages
>
>
> I have a very large table which I want to split onto many
> pages. The base
> table looks something like this:
>
> TableData:
> R1 | C1 | C2 | C3 | C4 | C5 | C6 | C7 | C8 | C9 | Cn
> R2 | C1 | C2 | C3 | C4 | C5 | C6 | C7 | C8 | C9 | Cn
> R3 | C1 | C2 | C3 | C4 | C5 | C6 | C7 | C8 | C9 | Cn
> R4 | C1 | C2 | C3 | C4 | C5 | C6 | C7 | C8 | C9 | Cn
> R5 | C1 | C2 | C3 | C4 | C5 | C6 | C7 | C8 | C9 | Cn
> ...
> R8 | C1 | C2 | C3 | C4 | C5 | C6 | C7 | C8 | C9 | Cn
>
> The result table(s) on each page must have a row header on
> each page and a
> "column header" (this means that some columns, e.g. the
> columns C1 and C2
> should be placed in each page).
>
> Result tables:
> Page 1:
> R1 | C1 | C2 | C3 | C4 | C5 | C6
> R2 | C1 | C2 | C3 | C4 | C5 | C6
> R3 | C1 | C2 | C3 | C4 | C5 | C6
> R4 | C1 | C2 | C3 | C4 | C5 | C6
>
> Page 2:
> R1 | C1 | C2 | C7 | C8 | C9 | C10
> R2 | C1 | C2 | C7 | C8 | C9 | C10
> R3 | C1 | C2 | C7 | C8 | C9 | C10
> R4 | C1 | C2 | C7 | C8 | C9 | C10
>
> Page 3:
> R1 | C1 | C2 | Cn
> R2 | C1 | C2 | Cn
> R3 | C1 | C2 | Cn
> R4 | C1 | C2 | Cn
>
> Page 4:
> R1 | C1 | C2 | C3 | C4 | C5 | C6
> R5 | C1 | C2 | C3 | C4 | C5 | C6
> R6 | C1 | C2 | C3 | C4 | C5 | C6
> R7 | C1 | C2 | C3 | C4 | C5 | C6
> R8 | C1 | C2 | C3 | C4 | C5 | C6
>
> Page 5:
> R1 | C1 | C2 | C7 | C8 | C9 | C10
> R5 | C1 | C2 | C7 | C8 | C9 | C10
> R6 | C1 | C2 | C7 | C8 | C9 | C10
> R7 | C1 | C2 | C7 | C8 | C9 | C10
> R8 | C1 | C2 | C7 | C8 | C9 | C10
>
> Page 6:
> R1 | C1 | C2 | Cn
> R5 | C1 | C2 | Cn
> R6 | C1 | C2 | Cn
> R7 | C1 | C2 | Cn
> R8 | C1 | C2 | Cn
>
> How can I do this with iText? How can I specify the columns
> that have to be
> repeated on each row?
>
> Best Regard
> Peter
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/