Import .xlsm with laravel excel maatwebsite

0

Good afternoon. I am having trouble reading an .xlsm file. I use the maatWebsite library to import files.

Error Information.

PHPExcel_Calculation_Exception in Cell.php line 293:
P. ACORDOS!B2 -> Invalid cell coordinate B

Import Code

    $excel = Input::file('arquivo');
    Excel::selectSheets('P. ACORDOS')->load($excel, function($reader)
    {
        $results = $reader->all();

        foreach ($results as $key => $val)
        {
            echo $val->Contrato;

        }

    });
    
asked by anonymous 09.04.2018 / 17:20

0 answers