Table is not supported anymore, use a PdfPTable instead.
----- Original Message -----
From: "Dante Notari" <[EMAIL PROTECTED]>
To: <itext-questions@lists.sourceforge.net>
Sent: Wednesday, March 15, 2006 5:34 AM
Subject: [iText-questions] Tables with SubTables generates empty rows
Hi,
I have a table with a subtable. The main table has only one row,
however the Table.size() returns 21. For some reason it has generated
many rows.
There are a series of methods used (getTable, getDataCell, getLabelCell
which return the Element with some formatting).
I have other tables with sub table and they have as well empty rows in
the main table at the end.
------------------- snip ----------------------------- begin
Table lMainTable = getTable(1);
lMainTable.addCell(getHeaderCell("Personal Information"));
Table lDetailTable = getTable(3);
// image
Cell ltempCell = new Cell();
ltempCell.setBorderWidth(0);
ltempCell.setRowspan(10);
ltempCell.addElement(Image.getInstance("placeholder.gif"));
lDetailTable.addCell(ltempCell);
lDetailTable.addCell(getLabelCell("First Name"));
lDetailTable.addCell(getDataCell(dFirstName));
lDetailTable.addCell(getLabelCell("Last Name"));
lDetailTable.addCell(getDataCell(dLastName));
lDetailTable.addCell(getLabelCell("Job Title"));
lDetailTable.addCell(getDataCell(dJobTitle));
lMainTable.addCell(getTableCell(lDetailTable));
document.add(lMainTable);
------------------- snip ----------------------------- end
Any ideas ?
Thanks,
Dante
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions