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