By Date: <-- -->
By Thread: <-- -->

Question about List in RTF



Hi,

I am using RtfWriter2 to generate a RTF document. I use com.lowagie.text.List 
to generate a list and put it in a com.lowagie.text.rtf.table.RtfCell object. I 
know that the RtfCell object doesn't support adding in the ListItem. But can I 
add in a List object? Also I wanna ask is there any problem for my code below? 
Actually the code doesn't come out with any exceptions or errors during 
compilation or generating the rtf document. 



Table table = new Table(1);
RtfCell cell = new RtfCell();

cell.addElement("Line 1 before List");
cell.addElement("Line 2 before List");

List list = new List(true, 0);
list.add(new ListItem("Point 1"));
list.add(new ListItem("Point 2"));
list.add(new ListItem("Point 3"));

cell.addElement(list);
cell.addElement("Line 1 after List");
cell.addElement("Line 2 after List");
table.addCell(cell);

doc.add(table);








-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions