mardi 6 juin 2017

laravel with phpexcel using columnIndexFromString

I am current using this

Excel::create('Export Test',function($excel) use($printData){
    $excel->sheet("Paper Print", function($sheet) use($printData){
        return $sheet->stringFromColumnIndex(5);
    }
}

the problem is it says the method doesnt exist.

I have tried PHPExcel_Cell::stringFromColumnIndex(5);

This says PHPExcel_Cell doesnt exist which would make since.

$excel->stringFromColumnIndex(5) also doesnt work because $excel doesnt exist.

From the documentation these methods should be available from both $excel and $sheet.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire