Range.UpdateFields ignores format switches for DOCPROPERTY fields

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.

Hi
Thanks for your request. I have reproduced this bug. And I have logged this problem to our defect base as issue # 3513. We will try to fix it in our next release. A notification will be posted here in this thread as soon as it will be done.
Best regards.

This issue has been open for a while. Any progress?
We noticed that the current version (6.5) still does not support date time formatting in document properties. E.g.
DOCPROPERTY dateProp \@ "yyyy/MM/dd"

Hi

Thanks for your inquiry. Unfortunately, the issue is still unresolved. You will be notified as soon as it is fixed.
Best regards.

The issues you have found earlier (filed as 3513) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.