When I try to update field embedded in a docx file using "isUpdateFields(true)" I get an error when saving the document to file (no error if I save the file without updating the fields).
I get no error if I manually update the field in word.
The error I get is "nested exception is class com.spire.doc.packages.spritB: Unknown char: ."
and the stacktrace related to the error following the call of SavetoFile :
- com.spire.doc.packages.sprmkB.spr (DoubleParser.java:258)
com.spire.doc.packages.sprmkB.spr (DoubleParser.java:41)
com.spire.doc.packages.sprKub.spr (SingleParser.java:17)
com.spire.doc.packages.sprxSB.spr (SingleExtensions.java:108)
com.spire.doc.fields.shape.ShapeBase.getWidth(Unknown Source)
com.spire.doc.fields.shape.ShapeBase.spr (Unknown Source)
com.spire.doc.packages.sprEPc.spr (Unknown Source)
com.spire.doc.packages.sprEPc.spr (Unknown Source)
com.spire.doc.packages.sprEPc.spr (Unknown Source)
com.spire.doc.packages.sprBPc.spr (Unknown Source)
com.spire.doc.Background.getInheritedShapeAttribute(Unknown Source)
com.spire.doc.Background.getShapeAttribute(Unknown Source)
com.spire.doc.fields.shape.VMLFill.spr (Unknown Source)
com.spire.doc.fields.shape.VMLFill.getImageBytes(Unknown Source)
com.spire.doc.Background.spr (Unknown Source)
com.spire.doc.Background.spr (Unknown Source)
com.spire.doc.Background.spr (Unknown Source)
com.spire.doc.packages.sprZPc.<init>(Unknown Source)
com.spire.doc.packages.sprPOc.spr (Unknown Source)
com.spire.doc.packages.sprPOc.spr (Unknown Source)
com.spire.doc.packages.sprPOc.spr (Unknown Source)
com.spire.doc.Document.spr (Unknown Source)
com.spire.doc.Document.spr (Unknown Source)
com.spire.doc.Document.saveToFile(Unknown Source)
If I try a second call of my function after a fail. The SavetoFile succeed but all my updated field get the value : "!SyntaxError, 0.0" and again if I update fields manually it works.
Any reasons of fix for this error?