If I read the book, "iText in Action" correctly, I think this is by design.
ColumnText object operates in either text mode (phrases and chunks) or
composite mode.
It can't do both at the same time.
The relevant quote from chaper 7 page 210 is
"Switching to composite mode is done implicitly by using the method add-
Element(). All the text that was added in text mode previously and that hasn’t
been rendered yet will be cleared as soon as you use addElement(). You may
already have noticed this when using PdfPCell. If you create a cell
with a paragraph
as a parameter for the constructor and subsequently use PdfPCell.add-
Element(), the first paragraph is lost. This isn’t a bug; it’s a
feature. (Honest!)"
Will Rickards
On Fri, Jun 12, 2009 at 5:13 AM, Elrinth<
elrinth@...> wrote:
>
> After adding a PdfTable to the ColumnText via AddElement no AddText will ever
> work.
>
> If I AddText a bunch of stuff then AddElement the PdfTable
> THEN call the Go(); all stuff in the AddText isn't added.
> But if I do AddText -> Go -> AddElement -> Go the added text is displayed.
> The problem is, I want text after the AddElement and it just won't show.
> Adding several PdfTables in a row works nice tho. But not AddText after one
> AddElement on a PdfTable is done.
>
> Anyone know why this might be happening?
>
> Tough luck, huh?
> --
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions