I use the below code for All Borders
$BStyle = array(
'borders' => array(
'allborders' => array(
'style' => PHPExcel_Style_Border::BORDER_THIN
)
)
);
Here i use
$objPHPExcel->getActiveSheet()->getStyle('A8:L8')->applyFromArray($BStyle);
But How can i give the Outside Border Like the below given screen
As described in the PHPExcel docs you use outline
, so:
$BStyle = array( 'borders' => array( 'outline' => array( 'style' => PHPExcel_Style_Border::BORDER_THIN ) ) );
All the available options are shown in this illustration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With