-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Corruption errors for saved Xlsx docs with frozen panes #532
Comments
PR is coming |
billblume
added a commit
to billblume/PhpSpreadsheet
that referenced
this issue
Jun 5, 2018
Fix for issue PHPOffice#532. Properly set the selected cells for worksheets with frozen panes when writing Xlsx documents. Beforehand, the saved Xlsx documents were generating corruption warnings when opened in Excel.
This was referenced Jun 5, 2018
billblume
added a commit
to billblume/PhpSpreadsheet
that referenced
this issue
Jun 6, 2018
Fix for issue PHPOffice#532. Properly set the selected cells for worksheets with frozen panes when writing Xlsx documents. Beforehand, the saved Xlsx documents were generating corruption warnings when opened in Excel.
5 tasks
billblume
added a commit
to billblume/PhpSpreadsheet
that referenced
this issue
Jun 12, 2018
Properly set the selected cells for worksheets with frozen panes when writing Xlsx documents. Beforehand, the saved Xlsx documents were generating corruption warnings when opened in Excel. Fixes PHPOffice#532 Closes PHPOffice#535
billblume
added a commit
to billblume/PhpSpreadsheet
that referenced
this issue
Jun 13, 2018
Properly set the selected cells for worksheets with frozen panes when writing Xlsx documents. Beforehand, the saved Xlsx documents were generating corruption warnings when opened in Excel. Fixes PHPOffice#532 Closes PHPOffice#535
Dfred
pushed a commit
to Dfred/PhpSpreadsheet
that referenced
this issue
Nov 20, 2018
Properly set the selected cells for worksheets with frozen panes when writing Xlsx documents. Beforehand, the saved Xlsx documents were generating corruption warnings when opened in Excel. Fixes PHPOffice#532 Closes PHPOffice#535
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is:
What is the expected behavior?
Saved Xlsx documents should not generate corrupt file message when first opened.
What is the current behavior?
When one saves an Xlsx document that contains a worksheet with a frozen pane. Opening such a document may generate a corrupt file alert ("We found a problem with some content in 'foo.xlsx'. ...)
The underlying recovery log is
The source of this error is a bad cell selection set for the worksheet with the frozen pane:
The underlying issue is that the
sqref
attribute of theselection
element is not valid for the value specified by attributeactiveCell
. Excel requiresactiveCell
be in the range of cell(s) specified insqref
.This is a regression introduced by recent pull request #435
This pull request changes
sqref
to be set to the currently selected range of cells. However,Writer\Xlsx\Worksheet::writeSheetViews
modifiesactiveCell
for frozen panes to be the frozen pane's top-left cell. Unfortunately, this top-left cell is not in the range of currently selected cells resulting in an invalid selection.What are the steps to reproduce?
Here is a unit test that reproduces the issue
Which versions of PhpSpreadsheet and PHP are affected?
This is in the post 1.2.1 develop branch. At this time, it has not been released yet.
The text was updated successfully, but these errors were encountered: