I am using phpexcel to generate excel document with PHP.
the question is, how to make auto height row using phpexcel? many thanks :)
$excel->getActiveSheet()->getRowDimension(1)->setRowHeight(-1);
Should set the row height to 'auto' for row 1.
$excel->getActiveSheet()->getDefaultRowDimension()->setRowHeight(-1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With