Contents/Application Interface functions/DocumentIn this chapterGetTerFields — Retrieve Window VariablesSetTerFields — Set Window VariablesTerGetParam — Retrieve miscellaneous operating variables.TerGetWordCount — Count number of words in the document.TerInsertDateTime — Insert a date/time field.TerInsertTOC — Insert table of contents.TerInsertToc2 — Insert table of contents.TerLoadExtFont — Load an external font file.TerSetDefDir — Set the default directory and file type.TerSetDocTextFlow — Set the right-to-left/left-to-right text flow option for the document.TerSetRtfDocInfo — Set the header information about the document.TerGetRtfDocInfo — Retrieve the header information about the document.