Hi I have tried to add nested tables to a Document object but keep getting a error (stack trace)

Error: null
com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
at com.lowagie.text.pdf.PdfDocument.add(Unknown Source)
at com.lowagie.text.Document.add(Unknown Source)

This only happened since I used the 0.97 lib.
I'm doing it this way:

Table mainTable = new Table(2);
     mainTable.addCell(cell, 0,0);
     mainTable.insertTable(datatable, 1,0);
     mainTable.insertTable(datatable, 1,1);
     mainTable.insertTable(datatable, 2,0);
     mainTable.insertTable(datatable, 2,1);
     document.add(mainTable);

where Table datatable = new Table(6);

Can someone help me on this please? Thanks in advance!

Kenny







_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger http://messenger.msn.co.uk




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to