Apply style to a table borderRightSize only affects the first row

Jan 8, 2014 at 3:34 PM
I'm giving style to a table (all 4 outer edges), but the problem is that it only affects the first row.
<?php
require_once 'phpword/PHPWord.php';
$PHPWord = new PHPWord();

$styleTable1 = array('borderSize' => 16, 'borderColor' => '1E1E1E',  'cellMargin' => 25, 'rules' => 'cols');
$bordeinferior = array(    'borderRightSize' => 50, 'borderBottomColor' => '009900',    'borderBottomSize' => 50, 'borderRightColor' => '00CCFF',    'borderTopSize' => 50, 'borderTopColor' => '00CCFF',    'borderLeftSize' => 50, 'borderLeftColor' => '00CCFF'); 
$styleCell = array('valign' => 'center');


$fontStyle20 = array('bold' => true, 'align' => 'left', 'size' => 20);
$fontStyle = array('bold' => true, 'align' => 'left', 'size' => 10);
$PHPWord->addTableStyle('mibordepersonal', $styleTable1, $bordeinferior);
 

?>

<?php
$section = $PHPWord->createSection();
$table = $section->addTable('mibordepersonal');

$table->addRow(300);
$table->addCell(6000, $styleCell)->addText('Font tamaño 20, segunda fila', $fontStyle20);// Add cells
$table->addCell(6000, $styleCell)->addText('Rossssssss s sdf sdssssssw 1', $fontStyle);


$table->addRow(300);
$table->addCell(6000, $styleCell)->addText('Font tamaño 20, segunda fila', $fontStyle20);// Add cells
$table->addCell(6000, $styleCell)->addText('Rossssssss s sdf sdssssssw 1', $fontStyle);

$table->addRow(300);
$table->addCell(6000, $styleCell)->addText('Font tamaño 20, segunda fila', $fontStyle20);// Add cells
$table->addCell(6000, $styleCell)->addText('Rossssssss s sdf sdssssssw 1', $fontStyle);


$table->addRow(300);
$table->addCell(6000, $styleCell)->addText('Font tamaño 20, segunda fila', $fontStyle20);// Add cells
$table->addCell(6000, $styleCell)->addText('Rossssssss s sdf sdssssssw 1', $fontStyle);

$table->addRow(300);
$table->addCell(6000, $styleCell)->addListItem('Font tamaño 20, segunda fila', $fontStyle20);// Add cells
$table->addCell(6000, $styleCell)->addListItem('0 - 2 years',0, $fontStyle);

?>
Jan 8, 2014 at 3:53 PM