I currently have big dificulties for put some text properly inside a cell from a table.
I would like the text to be like this :
"Analyse from computer
computername"
And it is displaying like this inside the cell : "Analyse from computer computername"
Here is my current code :
$table = $section->addTable('myTable');
$table->addRow(300);
$table->addCell(4000)->addImage('logo_sat.png',array ('width'=>100,'align'=>'center'));
$table->addCell(6400, $styleVertical)->addText("Analyse from computer
$computername", $styleFirstHeader, $styleCenter);
$table->addCell(4000, $styleVertical)->addText("SAT" , $styleFirstHeader, $styleCenter);
$table->addRow(30);
$table->addCell(4000, $styleVertical)->addText("ADR $chantier_code/$analyse_id" , $styleFirstHeader, $styleCenter);
$table->addCell(5200, $styleVertical)->addText("Indice : $indice Date : $analyse_datemaj " , $styleFirstHeader, $styleCenter);
$table->addCell(5200, $styleVertical)->addText("Page : " , $styleFirstHeader, $styleCenter);
I have seen $section->addTextBreak([$breakCount], [$fontStyle], [$paragraphStyle]);
inside the documentation but it seems not compatible with a table cell.
Any idea how we could make this works?