-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All rows seem empty except for first row (XLSX File) #76
Comments
Did you (or anybody else) solved the problem? It seems I have the identical one... The problem disappears if I make a filter in MS Excel (Data > Filter) and save the file like that. Reading the file with the filter makes no problems. However, this is not a solution I would like to accept :) I guess that you got arrays of empty strings, because the data you try to import is a text data. Am I right? I have data mixed (some cells contains numbers, some texts). It seems that every element of the row (=every value of array) is run throw some kind of numeric conversion.. If the cell contains number then I get the number output, otherwise I get empty. Update 1 I have just compared So ..after
then php reaches these lines:
Value of ..so it goes into if statement ..and finds there ...at the end the method returns "" (empty string). |
I have the identical one too, only get the first row or the last row, all the other rows disappear... |
Please check #149 for a bugfix. |
Hey there.
First, thank you for making this platform.
I have a big XLSX (~400k rows) file, and Im trying to parse it.
I followed the instructions and my code looks like this:
require('SpreadsheetReader.php');
$Reader = new SpreadsheetReader('test.xlsx');
$Reader -> ChangeSheet(0);
foreach ($Reader as $Row)
{
var_dump($Row);
}
it only dumps the first row (the header) correctly and all the next rows, are shown as arrays with empty strings.
what do I need to do here?
Thanks;
Haim
The text was updated successfully, but these errors were encountered: