17.16.5.17 FILENAME

Description: Retrieves the name of the current document from its storage location.

Field Value: The name of the current document.

Switches: One of the following general-formatting-switches: * Caps, * FirstCap, * Lower, or * Upper, and zero or one of the following field-specific-switches.

\p
  Include the full file path name.
[_Example_: Consider the case in which the following fields are updated:
  FILENAME
  FILENAME
      \* Upper
      \p

the results might be:

FIELD DEMO SUITE.DOCX
E:\Std\OOXML\Fields\Field Demo Suite.docx
http://example.com/files/myFile.docx

end example]

Syntax:

Last updated on