Как в PHPExcel задать авто ширинк колонки?
1 ответ
Документацию пробовали открывать? В Word-варианте пункт 4.6.28 называется "Setting a column’s width".
If you want PHPExcel to perform an automatic width calculation, use the following code. PHPExcel will approximate the column with to the width of the widest column value.
$objPHPExcel->getActiveSheet()->getColumnDimension('B')->setAutoSize(true);
-
-
а если
$objPHPExcel->getActiveSheet()->getColumnDimension('')->setAutoSize(true);
то применится ко всем столбцам? – des1roer 15 сен '15 в 10:42