You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by rupaliipte April 10, 2024
Hello,
We are reading excel files created Excel 2016 version and it is working perfectly. But now we are using Excel 2019 version and file stop reading.
It shows error like PHP Warning: Trying to access array offset on the value of type null in D:\laravel\xxxxx\xxxxx\xxxxxx.php on line 691. Reading file and passing array Null.
Does the library support Excel 2019?
Sample code of reading excel - Working fine for excel 2016 but not excel 2019 files
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
//Get Mapping table columns and row index of scheme code
$mappingSpreadsheet = $reader->load("$INPUT_DIRECTORY/$mappingFileName");
PhpSpreadsheet is tested with files generated using a variety of Excel versions, including 2016, 2019, 2021 and 365, but not tested against every conceivable feature of Excel in every version. If it is failing to read a valid Excel file, it's because that file contains something that it doesn't understand, but without seeing an example file to demonstrate and debug a problem, we can't identify exactly what that might be.
Note that I can't guess what file D:\laravel\xxxxx\xxxxx\xxxxxx.php might be, nor what is at line 691 of that file.
Discussed in #3978
Originally posted by rupaliipte April 10, 2024
Hello,
We are reading excel files created Excel 2016 version and it is working perfectly. But now we are using Excel 2019 version and file stop reading.
It shows error like PHP Warning: Trying to access array offset on the value of type null in D:\laravel\xxxxx\xxxxx\xxxxxx.php on line 691. Reading file and passing array Null.
Does the library support Excel 2019?
Sample code of reading excel - Working fine for excel 2016 but not excel 2019 files
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
//Get Mapping table columns and row index of scheme code
$mappingSpreadsheet = $reader->load("$INPUT_DIRECTORY/$mappingFileName");
Thank You
The text was updated successfully, but these errors were encountered: