I have a library that generates Word documents using the OpenXML SDK, one of the functionalities of the library is the generation of tables with formulas on the last row (such as SUM(ABOVE)
).
Word has these functions built-in, but when generating the document I have to assume that Word isn't installed on the machine.
The problem is that if I just generate the table and the formula field, it won't be updated automatically when the document is opened, the user would have to open the document and manually select "update field" for the function to be calculated.
Is there any way to do this within the code (without having to calculate the function manually)?