A table has two rows ,two columns

first row has data in two columns,

Second row has to have image with colspan 2

Table table = new Table(3);
table.setWidth(100);
table.setPadding(2);
table.setDefaultHorizontalAlignment(Element.ALIGN_CENTER);
Cell cell = new Cell(new Chunk(img, 0, -13));
cell.setLeading(img.scaledHeight());
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
table.addCell("first row first column");
table.addCell("first row second column");

how to add image in second row with colspan of 2 ?



-------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to