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

Fix hyperlinks in excel #838

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Sajito
Copy link

@Sajito Sajito commented Jan 22, 2025

The elements inside a worksheet are defined as a sequence, meaning excel expects the elements in a specific order.
Hyperlinks currently are written before sheetData, but must come after sheetData, otherwise it will fail to read them.
Also internal links need to be stored in location, which currently get's lost during save.

This fixes #836. Also it adds support for handling internal links in Excel-readable way.

- Write hyperlinks after sheetData, as excel can't read them if they come before sheetData
- Don't add hyperlink with Location to relations. Location is used to store links to locations within the same xlsx file and must not have a linked external relation
- Add support for hyperlink location to diskv CellStore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error when save xlsx file with hyperlink
1 participant