Hi, i'm trying to deal with nested tables, and a tested this
simple example, in wich i create a table with one cell and
another table with one cell in that cell. The code is the
following:
//create a main table, with one column
Table mainTable = new Table(1);
//create a table, that is a nested table in the main table
//Note: the nested table has only one column
Table nestedTable = new Table(1);
//add one cell with some content to the nested table
Cell nestedTableCell = new Cell("some text");
nestedTable.addCell(nestedTableCell);
//create a cell, in wich i add the nested table
Cell mainTableCell = new Cell();
//add the nested table to the cell of the main table
mainTableCell.add(nestedTable);
//add the cell to the main table
mainTable.addCell(mainTableCell);
//add to document and generate output...
This code don't work, but if I create the inside (nested) table
with 2 (two) columns it will work! For example,
new Table(2) or new Table(2,2) will work, but
new Table (2,1) doesn't do the job.
Is it a bug, i can I work arround it?
I'm calling the Table constructor with the exact number of
columns and rows that it have, stated from a database wich holds
the documents elements/structure, so i can't declare a number of
columns/rows, different (or in this case, greater) than it
really have.
Tks in advance,
Ricardo Nunes
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Caixa de email GR�TIS com 100Mb,
acesso por Browser, POP3 ou IMAP4.
Registe-se j� em http://www.zmail.pt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-------------------------------------------------------
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions