Comments (3)
I created xlsx in ubuntu os and tried by giving path of the file.
from spreadsheet-reader.
the sheet storing in temp directory is interepreted is incorrect. its correct for windows but not for google spreqad sheet xlsx files. following are my chnages:
SpreadsheetReader_XLSX.php (working copy)
@@ -338,7 +338,7 @@
/**
* Destructor, destroys all that remains (closes and deletes temp files)
*/
public function __destruct()
{
foreach ($this -> TempFiles as $TempFile)
{
$this -> Sheets = array();
foreach ($this -> WorkbookXML -> sheets -> sheet as $Index => $Sheet)
{
-
$Attributes = $Sheet -> attributes('r', true);
-
foreach ($Attributes as $Name => $Value)
-
{
-
if ($Name == 'id')
-
{
-
$SheetID = (int)str_replace('rId', '', (string)$Value);
-
break;
-
}
- }
-
//$Attributes = $Sheet -> attributes('r', true);
-
//foreach ($Attributes as $Name => $Value)
-
//{
-
// if ($Name == 'id')
-
// {
-
// $SheetID = (int)str_replace('rId', '', (string)$Value);
-
// break;
-
// }
-
//}
-
$SheetID = (int)($Sheet['sheetId']); $this -> Sheets[$SheetID] = (string)$S
from spreadsheet-reader.
I can confirm this issue.
$SheetID = (int)str_replace('rId', '', (string)$Value);
Should be changed to:
$SheetID = (int)($Sheet['sheetId']);
from spreadsheet-reader.
Related Issues (20)
- dead project? HOT 2
- Precision issue on minutes
- how i can delete some worksheet HOT 1
- Search in cell
- xlsx not readable in wordpress
- getting the row counts
- Max characters per row? How to disable?
- Get empty cell from csv file.
- Arbitrary file read vulnerability HOT 3
- How to get selected column?
- Date not usable HOT 1
- different constructor style
- Zip Bomb attacks prevention issue
- mime type not working
- Warning: "continue" targeting switch is equivalent to "break"
- Fatal error: Uncaught ValueError: XMLReader::open(): Argument #1 ($uri) cannot be empty HOT 1
- Deprecated: Implicit conversion from float xx.xxxx to int loses precision in excel_reader2.php on line 922 HOT 1
- its only showing the 2nd last of the data, how could i fix this?
- not showing all data in the file HOT 1
- hidden sheet issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spreadsheet-reader.