Skip to content
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

Properly set selected cells for frozen panes. #533

Closed
wants to merge 28 commits into from

Conversation

billblume
Copy link
Contributor

Fix for issue #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 is:

- [x] a bugfix
- [ ] a new feature

Checklist:

Why this change is needed?

One gets corruption warnings from Excel when opening a saved Xlsx document
with a worksheet containing a frozen pane.

Frederic Delaunay and others added 28 commits March 14, 2018 20:12
…cEngine_errors' and 'PHPOffice#388-Xlsx_MSextensions' into develop-merges
make newer Excel versions properly recalculate formulas on documents
Fix for issue PHPOffice#523.  When reading then writing
a Xlsx spreadsheet, preserve the workbook bookview attributes for
the spreadsheet, (e.g., the attribute that hides worksheet tabs.)
Beforehand, these attributes were always being set to fixed constants.
Made the following changes to fix PHPOffice#523
based on code-review comments.
* Updating workbook attributes is now done via a loop.
* Unit test no longer requires an input xlsx document.
* Renamed the test script to reflect that it tests all workbook
  bookview attributes, not just the 'showSheetTabs' attribute.
* Rewrote the comment for the test case to indicate that it
  tests all workbook bookvview attributes.
Comment and name fixes to unit test
Fix for issue PHPOffice#526.  Conditional operators
in the selection parameter of COUNTIF functions were not being
parsed properly, causing evaluations of formulae with such
functions to sometimes fail.

(Note: This is a recommit of this fix on a cleaner branch.)
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.
@billblume
Copy link
Contributor Author

It looks like I need to close and resubmit the pull request. I don't know why it included all these other merges and other commits. It is only a 3 line fix to one file.

@billblume billblume closed this Jun 6, 2018
@billblume billblume deleted the issue-532 branch June 6, 2018 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants