setting width/height to a range of columns/rows

Topics: Developer Forum, User Forum
Mar 27, 2009 at 11:39 AM
Hello!

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


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

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