Hi All

 

Sorry if this has been answerd before, but i could not find an answare
in the archive.

 

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.

 

Btw, thanks for a great API.

 

Best regards,

Lasse

 

An example snip:

 

PdfPTable testTable = new PdfPTable(2);

                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);

                testTable.AddCell("Next cell should contain a nice list,
but it semes it does not work. it renders as a single line -
dispointed");

                testTable.AddCell(phr3);

                myDocument.Add(testTable);

 

                myDocument.Add(new Chunk("But this works, but I would
love it inside a table"));

                myDocument.Add(list3);

                myDocument.Add(new Chunk("This works too, but I would
love it inside a table"));

                myDocument.Add(phr3);

-------------------------------------------------------------------------
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/

Reply via email to