PHPExcel_RichText

Topics: User Forum
Jul 15, 2014 at 7:49 AM
you can also change the background color of each word in the RichText.
I have seen from the examples that it is possible to assign a style to every word but not the background color.

Example
$temp_objRichText = new PHPExcel_RichText();
$objColor = $temp_objRichText->createTextRun("HELLO");
$objColor->getFont()->setColor( new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK) ) ;
Backgroung Yellow???

thanks
$objColor = $temp_objRichText->createTextRun("HELLO 2");
$objColor->getFont()->setColor( new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK) ) ;
Backgroung Red???