I have two files:
1.ods
inC:\
2.ods
inZ:\
In 1.ods
- cell A1
I've typed 10
, saved, closed.
In 2.ods
- cell A1
I've typed formula: ='file:///Z:/1.ods'#$Sheet1.A1
, saved, closed.
Now I want to recalculate value in 2.ods
cell A1
programmatically using odftoolkit
API when value in 1.ods
cell A1
changes (after save of course).
There is a method for getting calculated value: Cell#getDisplayText
but this is not working for external dependencies. I haven't found any API method that does the same thing as Open/LibreOffice shortcut Ctrl+Shift+F9
.
How can I refresh/recalculate aforementioned value using only odftoolkit
API?
(This is because I have 7000 ods files I don't want to recalculate manually and after that do what I need to do)
Looks like there is no functionality provided by the odftoolkit to do this as for now.