-
Notifications
You must be signed in to change notification settings - Fork 494
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
Weird text appears instead of readable texts. #70
Comments
Hi, |
Yes, |
I meant that at least the other sheeds are password protected, maybe that has some impact as well. I'm also not sure what setting a password on the file and then removing it does to the internal structure. I can take a look at the sample file, maybe I'll notice something there. |
Hi, I just found out this does not work as intended only on my Mac (MBA 2012) or perhaps all Macs?. The text are extracted correctly on an old Windows laptop running WAMP 2.0i (5 year old software) I also have a webserver running the bundled Apache on Ubuntu (t1.micro server on Amazon). Here is a sample Excel file https://dl.dropboxusercontent.com/u/10090786/sample.xlsx I got this in a Mac
|
roiji, i tested with your example <?php
require('SpreadsheetReader.php');
$Reader = new SpreadsheetReader('gale.xlsx', array('TempDir' => 'xl'));
$Sheets = $Reader -> Sheets();
$Reader -> ChangeSheet(1);
foreach ($Reader as $Row)
{
print_r($Row);
}
?> it does not work. <?php
require('SpreadsheetReader.php');
$Spreadsheet = new SpreadsheetReader('sample.xlsx');
$Spreadsheet->ChangeSheet(0);
foreach ($Spreadsheet as $Row)
{
//pass
}
$Spreadsheet->ChangeSheet(1);
foreach ($Spreadsheet as $Row)
if ($Row)
print_r($Row); |
@Hukuta is correct, it seems that simply the parameters to the SpreadsheetReader constructor were incorrect. |
Hi!
I've recently came across this library due to my frustration in PHPExcel not being able to read large (wide) XLSX files. Thank you.
I've made it ran after fixing ZipArchive::extractTo(): Permission denied error on my Mac (just pass SpreadsheetReader() a 2nd parameter containing an array that includes "TempDir")..
But print_r($Row) shows this:
here is the code that i've used:
I am only interested in the 2nd sheet.
The XLSX used to have a password.
Other sheets are password protected from being edited.
Some cells on the 2nd sheet points to a reference column on another Excel file or points to a column on a protected sheet. (Sorry, I don't know how it's formally called. When I click on the cell, a drop down appears).
The sheet has a lot of styling because it is a report to the managements.
I tried issue #38 but it only displayed question marks (?????) on some parts.
Thank you!
The text was updated successfully, but these errors were encountered: