How to set auto height in phpexcel?

bungdito picture bungdito · May 19, 2011 · Viewed 80.2k times · Source

I am using phpexcel to generate excel document with PHP.

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

Answer

pkavanagh picture pkavanagh · May 19, 2011
$excel->getActiveSheet()->getRowDimension(1)->setRowHeight(-1);

Should set the row height to 'auto' for row 1.