Hi there,
I'm using Itext to make a static html webpage.
Does anyone tell me how append a table inside a cell?
code
Table mainTable = new Table(1);
mainTable.setSpacing(0);
mainTable.setPadding(0);
mainTable.setBorder(0);
mainTable.setWidth(100);
mainTable.setMarkupAttribute(ElementTags.ID, "mainTable");
/*Table secondTable
= new Table(1);
secondTable.setSpacing(0);
secondTable.setPadding(0);
secondTable.setBorder(0);
secondTable.setWidth(1);
secondTable.setMarkupAttribute(ElementTags.ID, "secondTable");
//mainCell.addElement(secondTable);*/
Cell mainCell = new
Cell();
mainCell.setMarkupAttribute(ElementTags.ID, "mainCell");
mainTable.setBorder(0);
mainCell.setWidth(1);
mainTable.addCell(mainCell);
/*Cell
secondCell_1 = new Cell();
secondCell_1.setMarkupAttribute(ElementTags.ID, "secondCell_1");
secondCell_1.setWidth("0");
secondTable.addCell(secondCell_1);*/
document.add(mainTable);
____________________________________________________________
Navighi a 2 MEGA e i primi 3 mesi sono GRATIS.
Scegli Libero Adsl Flat senza limiti su http://www.libero.it
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions