Comments (7)
I have added this functionality few days ago and it is in very untested state. Feel free to test it and let me know any observations. However it is really experimental. Every cell object has a formula setter and getter, where you can set formula (starting with =) as string.
There are several problems with the fucntionality - for example I do not know how to markt the cell "outdated" so next time its value gets recalculated (it is clear that the gem is not able to caluculate the result itself).
from rspreadsheet.
@gorn Thanks. Is that in master
? Have you released this in some numbered version?
from rspreadsheet.
@gorn, I found that it is in the master
know, but not in the v0.2.7
. Thank you! I am going to check it! I'll write you back!
from rspreadsheet.
@gorn, For my purpose of generating formulas in the document it works like a charm!
I am wondering how circumstances coincidence: you have added it right few days before I need it.
That is really awesome!
Thank you a lot!
from rspreadsheet.
Yes it is nice coincidence, on the other hand it is motivating, when I see other people use it as well. :) I have relased v0.2.8 with formulas and I will be releasing v0.2.9 soon, because i just found that there is an issue when rewriteing formula by fixed string. That will be solved, but there is naother mysterious thing in LibreOffice itself - it appears, that each cell has a type, which can be number, string or some other options, but there is not "formula" type and I am not really sure how these two things work together - how one can "guess" from formula what type of value is the result. I was unable to find any docs on this.
from rspreadsheet.
Formula support works fine from me and all tests are passing, so this issue is closed. Feel free to open one if you spot any unexpected behaviour. Version releases as v0.2.9
from rspreadsheet.
@gorn Thank you a lot! 💪
from rspreadsheet.
Related Issues (20)
- FODS support HOT 7
- Setting background color get more cells colorized HOT 13
- Tests failing for ruby >= 2.4.6 HOT 1
- Cells table:covered-table-cell ignored.
- Repeated header rows (contained in table:table-header-rows) are ignored.
- method mispelled: Rspreadsheet::Row#lenght should be #length HOT 1
- Existing formulas do not calculate fields set by rspreadsheet HOT 9
- libxml gem not installed automatically on windows HOT 9
- Header rows are not respected HOT 1
- Rubyzip 1.3.0 and 2.0.0
- rewriting cell addresses in formulas when inserting rows / cells HOT 1
- Size does not ignore formatted cells without content HOT 9
- Randomly crash HOT 1
- Bundler doesn't detect libxml-ruby as a transitive dependency on macOS
- Can we open password protected file HOT 1
- Uncaught exception: cannot load such file -- libxml_ruby even if it's installed. HOT 2
- Problem writing cell with a drop-down list
- Unclear how to set cell number format for date etc.
- Charts in source .ods file cause an error when trying to save. HOT 1
- Iterate worksheets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspreadsheet.