Hi,
I need some help to create embedded tables. Here is the HTML code for what I 
want:

<html>
<head>
<title>Title of page</title>
</head>
<body>

<table border="1">

<tr>
<td>
<table border="1" width= "100%">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
</table>
</td>
</tr>

<tr>
<td>
<table border="1" width = "100%">
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
</td>
</tr>


<tr>
<td>
<table border="1" width = "100%">
<tr>
<td>row 3, cell 1</td>
<td>row 3, cell 2</td>
<td>row 3, cell 3</td>
<td>row 3, cell 4</td>
</tr>
</table>
</td>
</tr>

</table>

</body>
</html>

Here is the code I tried using iText library:

Table Table1 = new Table(1);
Table Table2 = new Table(2,1);
Table2.WidthPercentage  = 100;
Table Table3 = new Table(2,1);
Table3.WidthPercentage  = 100;
Table Table4 = new Table(4,1);
Table4.WidthPercentage  = 100;

Table2.addCell("T2");
Table2.addCell("T2");
Table1.insertTable(Table2, new Point(0,0));

Table3.addCell("T3");
Table3.addCell("T3");
Table1.insertTable(Table3, new Point(1,0));

Table4.addCell("T4");
Table4.addCell("T4");
Table4.addCell("T4");
Table4.addCell("T4");
Table1.insertTable(Table4, new Point(2,0));


The table width percentage does not seem to change anything...? It would be 
very appreciate if someone could help me here.

Jonathan




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to