Is there a good way to set automatic row audit in PHP Excel? So far I have seen that you can use a fixed height at which you indicate before how tall your row is. I also saw that you can use autoheight if you are not using merged cells.
PHPExcel - dynamic row height for merged cells
How to set auto height in phpexcel?
These two other questions ask similar questions, but none of them answers. One solution I reviewed is counting the number of words in a cell and wrapping based on this and a range of columns. However, this can open a can of worms.
You can also do it as follows
You can do this with this code:
$width=84; $height=20; $text="abcde..."; $excel->getActiveSheet()->getRowDimension(1)->setRowHeight(ceil(strlen($text)/width)*height);
'height' in the code has a text string in a cell, not an entire cell.