I am trying to embed some RTF source into a table cell by doingRtfDirectContent rdc = new RtfDirectContent(s);rdc.setInTable(true);Cell cell = new Cell(rdc);table.addCell(new Cell(cell));The cell comes out blank. Any idea what I am doing wrong?
Thanks-- Bruce Christie
On Tuesday 03 October 2006 16:30, you wrote:
> RtfDirectContent rdc = new RtfDirectContent(s);
> rdc.setInTable(true);
> table.addCell(new Cell(rdc));
>
> This renders a blank cell. If I add the same RtfDirectContent to teh
> document it appears fine.
Hm. Strange. What are you adding in "s"?
Gree
On Monday 02 October 2006 23:02, bqc wrote:
> Any idea how to show RtfDirectContent in a table cell?
I'm not quite sure I understand your question. You add the RtfDirectContent to
the Cell object
Cell cell = new Cell(new RtfDirectContent("..."));
table.addCell(cell);
This should work.
Greeting
Any idea how to show RtfDirectContent in a table cell?
Thanks
Bruce
--
View this message in context:
http://www.nabble.com/RtfDirectContent-tf2372430.html#a6609644
Sent from the iText - General mailing list archive at Nabble.com.
--