Hello,
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()
AspLic.SetLicense(Costanti.ASPOSE_LICENCE_PATH)
Dim AspDoc As New Aspose.Words.Document("c:\temp\updatewithword.doc")
AspDoc.Range.UpdateFields()
AspDoc.Save("c:\temp\updatewithaspose.doc",Aspose.Words.SaveFormat.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”).
I tested with release 4.3.1.0 for .net 2.0.
It would be nice if your method would handle these switches.
Greetings,
Pascal.