getvalue

Topics: Developer Forum, Project Management Forum, User Forum
Sep 9, 2008 at 11:02 AM
 $returnValue = new PHPExcel_Style_Font($text->getFont());
            $color = new PHPExcel_Style_Color( $returnValue->getColor());
            $sub_color = $color ->getARGB();//getARGB();
            var_dump($sub_color);
//object(PHPExcel_Style_Color)#7692 (1) { ["_argb:private"]=> string(8) "FF000000" }

how getvalue of object(PHPExcel_Style_Color)

Thanks
Developer
Sep 10, 2008 at 1:27 AM
I think the problem has to do with trying to read "theme colors" which are not supported by PHPExcel at the moment.

Whenever possible, use standard colors.

More explanation here in this issue (applies to both foreground and background colors.):
http://www.codeplex.com/PHPExcel/WorkItem/View.aspx?WorkItemId=7033

Also follow the link I posted there to learn about "theme colors".
Sep 10, 2008 at 9:40 AM
var_dump($sub_color->getARGB());//ok