It looks like * Lower, * Upper and * FirstCap format switches for DOCPROPERTY are not taken into account by the Range.UpdateFields method.
Here’s the code:
Dim AspLic As New Aspose.Words.License()
Dim AspDoc As New Aspose.Words.Document(“c:\temp\updatewithword.doc”)
I attached the two sample files used:
updatewithwords.doc : it has its fields updated by Microsoft Word and it can be seen that * Lower, * Upper and * FirstCap are handled since the displayed field values are different.
- updatewithaspose.doc : it has the fields updated by Aspose.Words but the format switches are not taken into account (property value has been written “as is”).
It would be nice if your method would handle these switches.