Hello,
I'm building data table with addTable function. The number of cols and rows should be dynamic.
I want add line break in cell but it doesn't work.
I'm trying this :
$docx = new CreateDocxFromTemplate('word/myTemplate.docx');
$wf = new WordFragment($docx, 'document');
$valuesTable = array(
array('Axe', 'Action'),
array("test \n sddf \r\n ".chr(13)." __LINEBREAK__ df", 'test')
);
$paramsTable = array(
'tableStyle' => "Grilleclaire-Accent1"
);
$wf->addTable($valuesTable, $paramsTable);
$docx->replaceVariableByWordFragment(array('TABLEAU_OBJECTIFS' => $wf), array('type' => 'block'));
$docx->createDocx($fic);
Is it possible ? What is the good function for this ?
Thanks