Alex Rivera | Logout

How to set auto height in phpexcel?

Asked 2011-05-19T06:00:02.290
49

I am using phpexcel to generate excel document with PHP.

the question is, how to make auto height row using phpexcel? many thanks :)

Edit
Report

1 Answer

22

To change height of all rows to auto you can do:

foreach($xls->getActiveSheet()->getRowDimensions() as $rd) { 
    $rd->setRowHeight(-1); 
}
answered 2012-07-03T11:14:58.317

Your Answer