Skip to content

Commit 69319bd

Browse files
committed
Remove calculated properties to make recalculate formulas in some spreadsheet applications, such as Kingsoft WPS
1 parent 858a7cb commit 69319bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

excelize.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ func replaceStyleRelationshipsNameSpaceBytes(contentMarshal []byte) []byte {
273273
// </row>
274274
//
275275
func (f *File) UpdateLinkedValue() error {
276+
wb := f.workbookReader()
277+
// recalculate formulas
278+
wb.CalcPr = nil
276279
for _, name := range f.GetSheetMap() {
277280
xlsx, err := f.workSheetReader(name)
278281
if err != nil {

0 commit comments

Comments
 (0)