phpexcel set font color

Solutions on MaxInterview for phpexcel set font color by the best coders in the world

showing results for - "phpexcel set font color"
Leni
13 Feb 2019
1$this->PhpExcel->createSheet($page);
2$this->PhpExcel->setActiveSheetIndex($page);
3$sheet = $this->PhpExcel->getActiveSheet();
4
5$sheet->getStyle("A8:C8")->getFont()->setBold(true)
6->setName('Arial')
7->setSize(14)
8->getColor()
9->setRGB('FFFFFF');
10$sheet->getStyle("A8:C8")->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
11