Answers for "phpexcel format cell background color"

PHP
1

phpexcel format cell background color

$page = 0;
$this->PhpExcel->createSheet($page);
$this->PhpExcel->setActiveSheetIndex($page);
$sheet = $this->PhpExcel->getActiveSheet();

$sheet->getStyle("A1:A7")->applyFromArray(
  array(
    'fill' => array(
      'type' => PHPExcel_Style_Fill::FILL_SOLID,
      'color' => array('rgb' => 'FFE699')
    ),
    'borders' => array (
      'allborders' => array (
        'style' => PHPExcel_Style_Border::BORDER_THIN,
        'color' => array('rgb' => '000000'),        // BLACK
      )
    )
  )
);
Posted by: Guest on January-06-2021

Code answers related to "phpexcel format cell background color"

Browse Popular Code Answers by Language