Hi,
There is a problem with the method UpdateFields() in following configuration:
1.
The document has a bookmark with name = 'bookmarkValue'
2.
The text inside the bookmark is also 'bookmarkValue' (same as the bookmark name).
3.
The document contains a field, which references to this bookmark with following formula in Word:
IF bookmarkValue = "abc" "first3" "any"
When opening the file and use the method UpdateFields, the application crashes with StackOverflowException.
Document doc = new Document(@"C:\test.doc");
doc.UpdateFields();
I figured out, that the problem ist the content of the bookmark. If the bookmark-Name and the bookmark-Value is not the same, then it works.
Please find attached the sample doc file.
It would be ok, if you can fix this in some of the next versions of Aspose.Words.
I don't need a patch.
Best Regards
Thomas