Hi All,
I want to know why does colpsan does not work for the cell when I add a
table in it. I am trying to insert a table inside a table using cell. I
would like table to be spanned for whole row. So when I say
row.setcolspan(4) and add table to the cell. The table does not get spanned.
It remains in the orginal cell instead of getting spanned in whole row.  The
code is as below:
               Table table1 = new Table(4); 
                Cell c1 = new Cell("1"); 
                Cell c2= new Cell("2"); 
                Cell c3= new Cell("3"); 
                c3.setColspan(2); 
                Cell c4 = new Cell("4"); 
                Cell c5= new Cell("5"); 
                Cell c6= new Cell("6"); 
                Table table2=new Table(3); 
                table1.addCell(c1); 
                table1.addCell(c2); 
                table1.addCell(c3); 
               //Add cells to table2
                table2.addCell(c4); 
                table2.addCell(c5); 
                table2.addCell(c6); 
               //Add table to cell of table1
                Cell c7= new Cell(table2); 
                c7.setColspan(4); 
               //?? When I set colspan for this cell. The content of the
cell should also get spanned. But the table resides in the original width of
the cell.

Any help will be highly appreciated. Is there any way to achieve this? I
dont want to use PdfPTable.
Thanks.
-- 
View this message in context: 
http://www.nabble.com/Is-this-a-bug--Colspan-does-not-work-when-you-add-a-table-in-cell-tf2442494.html#a6810339
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to