Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Excel2007 does not correctly mark rows as hidden/not visible #248

Open
rbairwell opened this issue Sep 24, 2013 · 1 comment
Open

Excel2007 does not correctly mark rows as hidden/not visible #248

rbairwell opened this issue Sep 24, 2013 · 1 comment

Comments

@rbairwell
Copy link

When reading in Excel2007 xlsx files, rows do not appear to be marked as not visible.

In Reader/Excel2007.php changing line 773 from:

if (self::boolean($row["hidden"]) && !$this->_readDataOnly) {
                                        $docSheet->getRowDimension(intval($row["r"]))->setVisible(FALSE);
                                    }

to:

if (self::boolean($row["hidden"]) && !$this->_readDataOnly) {
                                        $docSheet->getRowDimension(intval($row["r"]))->setVisible(FALSE);
                                    } elseif (is_object($row['hidden']) && 1==$row['hidden']) {
                                        $docSheet->getRowDimension(intval($row["r"]))->setVisible(FALSE);
                                    }

Resolves this issue during my testing

Jazzo added a commit to M4SS-Code/PHPExcel that referenced this issue Dec 11, 2013
MarkBaker pushed a commit that referenced this issue Dec 30, 2013
@gorlovka
Copy link

The same issue happens in the new spreadsheet by the way...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants