[Table of Contents] [docx version]
WordprocessingML Reference Material - Table of Contents
Syntax:
FILESIZE [ switches ]
Description: Retrieves the size of the current document in bytes. [Note: This information is not stored inside the document's XML. It needs to be obtained from the file system. end note]
Field Value: The size of the current document in bytes.
Switches: Zero or one numeric-formatting-switch or general-formatting-switch and zero or one of the following field-specific-switches.
\k |
Round to the nearest kilobyte. |
\m |
Round to the nearest megabyte. |
[Example: Consider the case in the document’s size is 4,660,736 bytes and the following fields are updated:
FILESIZE \# #,##0
FILESIZE \k
FILESIZE \m
the results are:
4,660,736
4661
5
end example]