Hello Everyone,
Thanks to the PHPDocX team for a wonderful product.
I have a question regarding the nesting of data in a table, (3 columns wide), which is in a Word template. I cannot get it working the way I would like. The issue: we have messages which are generated from a database query, if the message has replies, they are listed below the messge.
I have no problem looping through the replies and creating some text to add to the variable placeholders in the Word template, but the replies are made of three components: a name; the reply, and; a date.  When they are added to the Word template to create a table via the:
->addTemplateVariable(
$data,
'table',
$settings
)
function, each line of text, (paragraph), takes on the same formatting.
I would like each line of the reply to have differnet formatting if possible. Each of the paragraphs / lines to be a different color.
Is there any way to do this, as I have tried, addText(), which added paragraphs above the table. The createWordMLFragment fucntion did not work either.
Any help would greatly be appreciated.
Ian.
 
                 Log in
                                    Log in
                                 Contact
                                Contact
                             Forum
                                Forum