We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

DOCX UpdateFields fails on equation

Hi Aspose team,

We encountered the following problem:


When we try to update the fields of the attached docx, Aspose fails on the equation with the following exception:

System.ArgumentException was unhandled
HResult=-2147024809
Message=Fraction element can have only numerator and denominator parts.
Source=Aspose.Words
StackTrace:
at . ( )
at . ( , )
at . (OfficeMath , )
at .VisitOfficeMathStart(OfficeMath )
at Aspose.Words.Math.OfficeMath.r3ka8zscesabkstb24kjjv9sml9wq7pw (DocumentVisitor )
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Math.OfficeMath.Accept(DocumentVisitor visitor)
at . (OfficeMath )
at …ctor(OfficeMath )
at ​ . (Node )
at ​ …ctor(Node )
at . (Node )
at . (Boolean )
at . ()
at . ()
at . (Document , ​ )
at Aspose.Words.Document.UpdatePageLayout()
at . ()
at . ( )
at . ( , )
at . (Node , )
at . (Node )
at Aspose.Words.Range.UpdateFields()
at Aspose.Words.Document.UpdateFields()
at AsposeWordsTest.Program.Main(String[] args) in C:\Users\dlengyel\Documents\Visual Studio 2015\Projects\AsposeWordsTest\AsposeWordsTest\Program.cs:line 26
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

We use the following simple code:
var doc = new Aspose.Words.Document(path);
doc.UpdateFields();
doc.Save(outputPath);

Please let us know if we can provide any more details to help you investigate the issue.

Best regards,
Daniel Lengyel
0029835
Hi Daniel,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-15079. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-15079) have been fixed in this Aspose.Words for .NET 17.5 update and this Aspose.Words for Java 17.5 update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.