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

Template support formula #176

Closed
shps951023 opened this issue Apr 14, 2021 · 5 comments
Closed

Template support formula #176

shps951023 opened this issue Apr 14, 2021 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@shps951023
Copy link
Member

shps951023 commented Apr 14, 2021

image

@shps951023
Copy link
Member Author

shps951023 commented Apr 14, 2021

Please be aware of formula Injection problem

@shps951023
Copy link
Member Author

@shps951023 shps951023 added the help wanted Extra attention is needed label Sep 15, 2021
@thirstyape
Copy link

Hello,

To clarify, are formulas in templates supported at all? In my tests I have noticed that if the template contains any formulas the resulting file will be broken. Just basic stuff like =C9*E9 or =SUM(F9:F30). Even if those columns are left unchanged this will work for what I need, but of course adding more advanced capabilities will be nice also.

This is definitely going to make the library unusable for my purposes if there is no support for formulas. I really like this library and am happy to fork and create something to support that.

Let me know, thanks.

@thirstyape
Copy link

Turns out the issue I was having is related to inserting DataTables and any formulas below them. As the insertion of multiple rows into a template will create new rows this is something that should be looked at, but different from this issue.

@jsgervais
Copy link
Contributor

See pull request #491, I had exactly the same issue, turns out the library needed to reindex the file calcChain.xml in the archive. It works for single sheet worbooks, for multiple sheets, the library will need to parse worksheet.xml.rels to get corresponding sheets id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Status: In progress
Development

No branches or pull requests

3 participants