I am using phpoffice\Phpspreadsheet and when I upload Excel it shows me error Top Sheet!E102 -> Top Sheet!E15 -> Table Table7 for Structured Reference cannot be located
My code is:
$file = $request->file; $readerExtension = ucfirst($file->getClientOriginalExtension()); $reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($readerExtension); $reader->setReadDataOnly(true); $spreadsheet = $reader->load($request->file('file')); $allSheetsArray = $spreadsheet->getSheetNames(); $import = $spreadsheet->getSheetByName('Top Sheet'); $cell = $import->getCell('E102'); $cellDataType = $cell->getDataType(); //$colValue = $import->getCell('E102')->getCalculatedValue(); dd($cell); But when we dump data it shows the result in calculated value. Can anyone please help me with this issue? I have tried many methods to solve this problem but no luck.
I am using phpoffice\Phpspreadsheet and when I upload Excel it shows me error [b]Top Sheet!E102 -> Top Sheet!E15 -> Table Table7 for Structured Reference cannot be located[/b]
My code is:
$file = $request->file; $readerExtension = ucfirst($file->getClientOriginalExtension()); $reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($readerExtension); $reader->setReadDataOnly(true); $spreadsheet = $reader->load($request->file('file')); $allSheetsArray = $spreadsheet->getSheetNames(); $import = $spreadsheet->getSheetByName('Top Sheet'); $cell = $import->getCell('E102'); $cellDataType = $cell->getDataType(); //$colValue = $import->getCell('E102')->getCalculatedValue(); dd($cell); But when we dump data it shows the result in calculated value. Can anyone please help me with this issue? I have tried many methods to solve this problem but no luck.
I am using phpoffice\Phpspreadsheet and when I upload Excel it shows me error Top Sheet!E102 -> Top Sheet!E15 -> Table Table7 for Structured Reference cannot be located
Я использую phpoffice \ phpspreadsheet и когда я загружаю Excel, он показывает мне ошибку
Top Leate! E102 -> Top Sheet! E15 -> Таблица Таблица 7 Для структурированной ссылки не может быть обнаружена
Мой код:
$file = $request->file;...
Представьте, что мы импортируем Excel и используем метод точки. цвет ячейки
public static function beforeImport(BeforeImport $event)
{
for ($i = 1; $i getDelegate()->getActiveSheet()->getCell( A$i )->getValue()));...