Lars-Bo Jacobsen wrote:
> I use iTextSharp and would like to ad a List in a Phrase to a Table
> cell, but in the table it renders as a single line. Is there a way to
> achives my whises.
Why do you flatten the list by putting it inside a Phrase object???
> List list3 = new List(List.ORDERED, 20);
> list3.Add("item1");
> list3.Add("item2");
> list3.Add("item3");
> list3.Add("item4");
> Phrase phr3 = new Phrase();
> phr3.Add(list3);
Why not do 'the logical thing' and put the list inside a cell???
Table table = new Table(1);
List list = new List(List.ORDERED, 20);
list.add("item1");
list.add("item2");
list.add("item3");
list.add("item4");
table.addCell(cell);
Why not use PdfPTable instead of Table???
br,
Bruno
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/