New Record for Each Row

I am code written in Coldfusion and all I am trying to do is to show a list of records in a table cell using setText(#list#). However, I want each record starting in a new row. Currently, there is no carriage return. What is the best way to approach this? In addition, based on a certain criteria, how can I apply font color to each text. thanks in advance.

My Code:



Dear John

Actually, you will need to add Paragraph object in TextFrame.Paragraphs or TextHolder.Paragraphs collection for each new line.

And when you want to bold/italicized/underline/color some/all of the text inside the paragraph, you would need to add Portion object in Paragraph.Portions collection.

In Java, you can access the above properties and add objects in this way.

TextFrame.getParagraphs()
TextFrame.getParagraphs().add()

TextHolder.getParagraphs()
TextHolder.setParagraphs().add()

Paragraph.getPortions()
Paragraph.getPortions().add()

For code example, please see this post.

Also see these two threads.