-
I use a class derived from Simplified code sniplet to explain what I try to get:
I did not find a way without modifying the reader by accepting a Spreadsheet instance as parameter and fill this one with data. I can hand over a Modification from:
to:
With this modification:
Is there something I missed and has anybody an idea how I can get this working without modifying the reader? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The code at https://gist.github.com/eduardokum/ce8d0e937ed9136b713cc0790ce790be looks like it would solve your problem. $reader = new Reader\Xlsx();
$spreadsheet = $reader->load('filename');
$mySpreadsheet = cast($spreadsheet, MySpreadsheet::class);
var_dump($mySpreadsheet->getActiveSheet()->getCell('A1')->getValue()); // appears to work
$mySpreadsheet->doStuff(); // appears to work |
Beta Was this translation helpful? Give feedback.
-
PR #4404 addresses this. |
Beta Was this translation helpful? Give feedback.
PR #4404 addresses this.