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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

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