php - PHPExcel conditional formatting off by one row -


my conditional formatting off 1 row reason , cannot figure out why.

here code:

$conditional = new phpexcel_style_conditional();                                                                                 $conditional->setconditiontype(phpexcel_style_conditional::condition_containstext);                                              $conditional->setoperatortype(phpexcel_style_conditional::operator_containstext);                                                $conditional->settext('~?');                                                                           $conditional->getstyle()->getfill()->applyfromarray(array('type' => phpexcel_style_fill::fill_solid, 'endcolor' => array('rgb' => '7fa0d1')));    ...  $conditionalstyles = $objphpexcel->getactivesheet()->getstyle('a:j')->getconditionalstyles(); array_push($conditionalstyles, $conditional); $objphpexcel->getactivesheet()->getstyle('a:j')->setconditionalstyles($conditionalstyles); 

in spreadsheet generates, have

? 

and reason formats instead of ? above it. if go excel's conditional formatting "manage rules", select rule, "edit rule", click "ok" without changing anything, click "ok" in main window, fixes itself. i'm not sure why off on first load?

row , column styles aren't supported in phpexcel, range of 'a:j' in getstyle call invalid. cell styles supported, instead, need specify range of cells

e.g

$conditionalstyles = $objphpexcel     ->getactivesheet()     ->getstyle('a1024:j1024')     ->getconditionalstyles(); 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -