I have a document template(attached - Basic Letter.doc) from which I am creating a document. In the template, the DOS field has a switch to display the format as January 1, 2010 - {DOCPROPERTY "~DOS" \@ "MMMM d, YYYY" }
.
Using Aspose, I pass the values into the custom document properties & then update the fields:
doc.CustomDocumentProperties["~PtFirst"].Value = firstname;
doc.CustomDocumentProperties["~PtMiddle"].Value = middlename;
doc.CustomDocumentProperties["~PtLast"].Value = lastname;
doc.CustomDocumentProperties["~DOS"].Value = dateofService;
doc.Range.UpdateFields();
However, in the final saved document(saved.doc), the formatting is not put in. The date instead displays as 01/01/2010.
What can be done about this?