php - php_excel07- how to fix min heigth and mak to grow height based on the contents of a cell -


i have export data xlsx, exported file should in pre defined format. becoz of these using "phpexcel". , created template of format each row specified height.

actually in each cell writing data dynamically. if text larger, row height in not increased.

so ther anyway tat row height increased fit cell text.

to set row autofit:

$objphpexcel->getactivesheet()->getrowdimension(10)->setautosize(true); 

and set individual cells allow wrapping

$objphpexcel->getactivesheet()->getstyle('a10:d10')->getalignment()->setwraptext(true); 

Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -