Heather Richardson wrote:
> The page numbers are working correctly, however the table is not 
> displaying correctly. I'm not sure what I did wrong but I have a feeling 
> it has something to do with the ContentByte. I used examples given on 
> your website to get this far and I'm sure I just have something wrong. 
> Here is my code below.

I see bits and pieces that could be done differently
(for instance: you create a new BaseFont object every
time a page is done in onEndPage; this is overkill),
but I miss the overview. For instance when do rowStart
and rowEnd change? Could it be rowStart and rowEnd
are wrong and are therefore not showing any table?
(I can't tell from your code.)
Also I assume you want a repeating header; but you
try to achieve this in a very odd way.

If I were you, I'd rewrite the example. Use the method
setHeaderRows instead of repeating the first row 'manually'
and put the PdfPTable inside a ColumnText to repeat it
(unless you intend to change the 0, -1 because you'll
need to split the table vertically in the future).

For now, this is the best answer I can give, based on
your code sample.
br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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/

Reply via email to