Is it possible to add a table into a RtfCell object?
I have tried to add a Table with 1 column and 1 cell into a RtfCell.
And then add this RtfCell into a Table which has 3 columns.

It does add the Table into the RtfCell, but with 3 columns.

here is the source code:

/* Add table */

Table mainTable = new Table(3);
// adding 3 RtfCells to the first row of mainTable

Table smallTable = new Table(1);
// adding 1 RtfCell to the first row of smallTable

RtfCell r = new RtfCell();
r.setColspan(3);
r.addElement(smallTable);

mainTable.addCell(r);

doc.add(mainTable);

/* End */

It fails!! 











-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to