mercredi 14 juin 2017

Edit an exesting file Excel with framework Laravel

I want to edit an existing file named 'myfile', I want just to export it before adding some data...and I have this problem :


PHPExcel_Reader_Exception in Excel2007.php line 82:

Could not open C:\laravel\compta\files/Med for reading! File does not exist.

And this is my code in controller :


public function export(){

Excel::load('files/Med',function($excel) {

$excel->sheet('Sheetname', function($sheet) {

    // Sheet manipulation

});

})->export('xls');

}


How can I please export the file 'Med' ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire