Menu

#62 Unable to read

open
nobody
None
5
2008-03-27
2008-03-27
Anonymous
No

Hi,

I had an excel file that I couldn't read.
The variable $this->wrkbook was not defined.

I correct it by changing in oleread.inc, in the method __readPropertySets by replacing

if ($name == "Workbook" || $name == "Book") {
$this->wrkbook = count($this->props) - 1;
}

by

if (strcasecmp($name, "Workbook") == 0 || strcasecmp($name, "Book") == 0) {
$this->wrkbook = count($this->props) - 1;
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB