Sub UpdateDocProps()
Dim oStory As Object
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update 'update fields in all stories
Next oStory
End Sub
We have several stories in our document that have StoryType = wdTextFrameStory. The problem is that in documents generated with the latest versions of Aspose.Words, the loop will visit only one story of type wdTextFrameStory, thus ignoring the rest of them. This loop worked fine in the earlier version.