Just use paragraph objects with AddElement instead of using AddText
for the text.
Will Rickards
On Fri, Jun 12, 2009 at 6:14 PM, Elrinth<
elrinth@...> wrote:
>
> Thank you very much for explaining that. Since you seem to know a bit about
> iTextSharp...:
>
> Can you explain to me how exactly how I'm supposed to create a flow layout
> such as the one below then?
>
> I would like to make:
>
> BoldHeadLineText
> Some text with several lines (can differ in amount of lines)
>
> A space inbetween
>
> BoldHeadLineText
> Some text with several lines (can differ in amount of lines)
>
> A space inbetween
>
> A 2 column table with several info
>
> A space inbetween
>
> A 4 or 3 (depending on if field is filled) column table with several
> statuses
>
> A space inbetween
>
> BoldHeadLineText
> Some text with several lines (can differ in amount of lines)
>
>
>
> William Rickards wrote:
>>
>> 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>>
>>
>
> --
> View this message in context:
http://www.nabble.com/ColumnText-bug---After-adding-a-PdfTable-tp23995430p24006858.html> Sent from the itextsharp-questions mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> 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>
------------------------------------------------------------------------------
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