laravel 5.3 - Laravel5.3 maatwebsite/excel formula in Excel exporter with blade view failed -


i have collection , export collection maatwebsite/laravel xls file. if try insert formula command fails. can place every value explicit no formula. tried change value in config/excel.php.

$xls = excel::create($exportfilename, function ($excel) use ($data, $user) {              $year = carbon::now()->year;              $sheetname = 'statistics-' . $year;             if(!is_null($user)) {                 $sheetname .= "-".$user;             }              $excel->sheet($sheetname, function ($sheet) use ($data) {                 $sheet->loadview('statistics.projectmananger-projectstatistic')->with('statistics', $data);                  // freeze first row                 $sheet->freezefirstrow();                  // format range e.g. leading zeros                 $sheet->setcolumnformat([                     'k:l' => '#,##0.00_-',                     'o:q' => '#,##0.00_-',                     't:v' => '#,##0.00_-',                     'r' => '0.00%',                     'w' => '0.00%',                 ]);                  // set auto size sheet                 $sheet->setautosize(true);              });              $this->info('finished command! file created for: '.$user);          })->store('xls'); 

i tried in closure , after finishing export. result same.

$xls->setactivesheetindex(0)->gethighestcolumn();         $highestrow = $xls->setactivesheetindex(0)->gethighestrow();         $xls->setactivesheetindex(0)->setcellvalue('k7', "=sum(k2:k6)");         $xls->store($type); 

error looks evertime this:

  [errorexception]   uninitialized string offset: 0 


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -