phpexcel set font color

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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