Remove calculated properties to make recalculate formulas in some spreadsheet applications, such as Kingsoft WPS

This commit is contained in:
xuri 2020-03-09 00:08:47 +08:00
parent cb79754068
commit 2ccb8f62ed
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7
1 changed files with 3 additions and 0 deletions

View File

@ -273,6 +273,9 @@ func replaceStyleRelationshipsNameSpaceBytes(contentMarshal []byte) []byte {
// </row>
//
func (f *File) UpdateLinkedValue() error {
wb := f.workbookReader()
// recalculate formulas
wb.CalcPr = nil
for _, name := range f.GetSheetMap() {
xlsx, err := f.workSheetReader(name)
if err != nil {