setting width/height to a range of columns/rows

Topics: Developer Forum, User Forum
Mar 27, 2009 at 12:39 PM

Is there any examples of how to set width or height to a range of columns/rows?

except this one:
    foreach ($tableProperties['width'] as $param => $value)
        $objPHPExcel->getActiveSheet()->getColumnDimension($param)->setWidth(($value+0.83));        //+0.83 == offset

Mar 30, 2009 at 6:16 AM
Looping through columns like in your example is currently the only way to do it.

Mar 30, 2009 at 8:00 AM
ok, i will looping through columns. thanks.