rap2hpoutre / fast-excel

🦉 Fast Excel import/export for Laravel
MIT License
2.08k stars 246 forks source link

startRow does not work #349

Open MaarekVarres opened 6 months ago

MaarekVarres commented 6 months ago

It seams that there is problem with getting headers if I start reading file lets say on line 155. This code change is probably nor correct in every scenario but some changes are needed since importing large files in multiple job runs are not possible currently.

My changes are "$k === 1" in importable.php - function importSheet

if ($k >= $this->start_row || $k === 1) { if ($this->with_header) { if ($k === 1) { $headers = $this->toStrings($row); $count_header = count($headers); continue; }