We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f912bb commit 2fe4ba7Copy full SHA for 2fe4ba7
controllers/ExportController.php
@@ -30,7 +30,8 @@ public function actionExcel()
30
$objPHPExcel->getActiveSheet()->setTitle($title ? $title : $modelName);
31
$letter = 65;
32
foreach ($fields as $one) {
33
- $objPHPExcel->getActiveSheet()->getColumnDimension(chr($letter))->setWidth(20);
+ //$objPHPExcel->getActiveSheet()->getColumnDimension(chr($letter))->setWidth(20);
34
+ $objPHPExcel->getActiveSheet()->getColumnDimension(chr($letter))->setAutoSize();
35
$letter++;
36
}
37
@@ -370,4 +371,4 @@ private function getFieldsKeys($fieldsSended) {
370
371
372
return $fields;
373
-}
374
+}
0 commit comments