Formating a text in a table cell with PHPWord e.g. bold, font, size e.t.c
- by alphy
I have the code snippet below
//create a new word document
$word= new PHPWord();
//create potrait orientation
$section=$word->createSection();
$table = $section->addTable();
$word->addFontStyle('rStyle', array('bold'=>true, 'italic'=>true, 'size'=>16));
//header row
$table->addRow(400,…