Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Sun May 03, 2020 2:12 pm

I am working with Spire.doc in a java application.
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?

etienne.zante
 
Posts: 1
Joined: Sun May 03, 2020 7:09 am

Mon May 04, 2020 1:34 am

Hello,

Thanks for your inquiry.
To help us investigate your issue more accurately and quickly, please provide your full code and your input file. You could upload here or send them to us(support@e-iceblue.com) via email. Thanks in advance.

Sincerely
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1411
Joined: Tue Jul 09, 2019 2:22 am

Wed May 20, 2020 10:17 am

Hello,

Hope you are doing well.
Could you please provide the information I mentioned above to help us investigate further?
Thanks in advance.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1411
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Doc

cron