table border

May 14, 2013 at 7:31 AM
How to set the outer table border?Thanks!
May 14, 2013 at 7:48 AM
Hello,

You can set the table border as per following code and also change the color

$cell->getBorders()->getTop()->setLineWidth(1)->setLineStyle(PHPPowerPoint_Style_Border::LINE_SINGLE)->setColor(new PHPPowerPoint_Style_Color('FFFFFFFF'));
$cell->getBorders()->getLeft()->setLineWidth(1)->setLineStyle(PHPPowerPoint_Style_Border::LINE_SINGLE)->setColor(new PHPPowerPoint_Style_Color('FFFFFFFF'));
$cell->getBorders()->getRight()->setLineWidth(1)->setLineStyle(PHPPowerPoint_Style_Border::LINE_SINGLE)->setColor(new PHPPowerPoint_Style_Color('FFFFFFFF'));
$cell->getBorders()->getBottom()->setLineWidth(1)->setLineStyle(PHPPowerPoint_Style_Border::LINE_SINGLE)->setColor(new PHPPowerPoint_Style_Color('FFFFFFFF'));
May 14, 2013 at 7:55 AM
Edited May 14, 2013 at 8:30 AM
Sorry! I'm talking about the outside border of the table as a whole. Lateral border