moonlandsoft / yii2-phpexcel

Exporting PHP to Excel
MIT License
135 stars 89 forks source link

not working - corrupt file #9

Closed gabriele-carbonai closed 5 years ago

gabriele-carbonai commented 8 years ago

I try every examples but I can not open the file.

$model =  Phone::find()->all();

\moonland\phpexcel\Excel::export([
     'models' => $model,
     'mode' => 'export', //default value as 'export'
     'columns' => ['phone_id','phone_number'], 
     'headers' => ['phone_id' => 'ID','phone_number' => 'Phone'], 
]);
``
What can be?
thanks
gabriele-carbonai commented 8 years ago

I change from .xls to .xlsx and working.. can be about openOffice, the problem ?

avarik-anam commented 8 years ago

i am so sorry i late to response your issue. i will try this first, if this is have problem, i will find the solution for fixing this problem. thank's for your support.

ganesha77 commented 6 years ago

Hey there I have same issue not able to solve Will you please help.

.xls and .xlsx both not working

avarik-anam commented 5 years ago

i hope this has been resolved, i has update the dependency to phpspreadsheet. Thank's