Back to Devexpress

Field Codes

officefileapi-15285-word-processing-document-api-fields-field-codes.md

latest4.6 KB
Original Source

Field Codes

  • Sep 19, 2023
  • 2 minutes to read

Word Processing Document API supports the following field codes:

Field NameFunctionality
AUTHORInserts the name of a person or organization who created the document.
COMMENTSInserts the document notes.
CREATEDATEInserts the current date and time. After a mail merge the field is replaced with the date and time of the mail merge operation.
DATEInserts the current date and time.
DOCPROPERTYInserts the value of the document property specified by the field parameter.
DOCVARIABLEEnables you to programmatically insert complex content when this field is updated.
HYPERLINKEnables you to navigate to another location or to a bookmark.
IFCompares two values and inserts the text according to the results of the comparison.
INCLUDEPICTUREInserts the specified image.
KEYWORDSInserts the document keywords or tags.
LASTSAVEDBYInserts the name of the last person who modified and saved the document.
MERGEFIELDRetrieves a value from the bound data source.
NUMPAGESInserts the total number of pages.
PAGEInserts the number of the page containing the field.
PRINTDATEInserts the date and time that a document was last printed.
REFInserts bookmarked text or graphics.
REVNUMInserts the number of document revisions.
SAVEDATEInserts a date and time a document was last saved.
SECTIONPAGESInserts the total number of pages in a section.
SEQProvides sequential numbering in the document.
STYLEREFInserts text that is formatted with the specified style.
SUBJECTInserts the document topic of content.
SYMBOLInserts a symbol.
TCDefines entries for the table of contents.
TEMPLATEInserts the name of a template attached to the document.
TIMEInserts the current time.
TITLEInserts the document title.
TOCBuilds a table of contents.

Formatting Options

The following format switches are supported: