User defined headers and footers can be printed on every page. Headers (and footers) each consist of 3 sections - left, center and right, which are left justified, centered and right justified, respectively. To specify a header, you enter each of these 3 sections, separated by a semi-colon. That is - "left;center;right" (do not include the quotes).

 

Each of these sections can contain plain text, special format specifiers or can be empty. The format specifiers consist of a percent (%) followed by one character, and are expanded upon printing. The valid specifiers are as follows (note that case is important):

 

%f

Name of the current file (name only)

%F

Full Path Name of current file

%d

Current Date

%D

Directory Name (ie, %F without the file name)

%e

File Date

%t

Current Time (24 hour format)

%T

Current Time (12 hour format)

%u

File Time (24 hour format)

%U

File Time (12 hour format)

%p

Current Page Number

%P

Total pages to be printed

%r

Print the Ruler

%g

Print the Gridlines

       

If you want to use a "%" or ";" in the header text - prefix them with a "%". That is, use "%%" and "%;" respectively.

 

Examples: (once again, do not enter the quotes)

 

"%f;;Page %d"

Print the file name on the left and page number on the right

";%d;"

Just print the page number (with no text) in the center

";;"

Prints an empty header/footer

       

If the header/footer field is left blank, it defaults to "%f;%d %t;Page %p". That is, it prints the file name on the left, the date and time in the center, and the Page number on the right.

 

Notes

 

The ruler and gridlines cannot be combined with any other specifier (only each other). For example, you cannot combine the ruler with a page number. If "%r" is specified, then anything else that may be entered in the header/footer is ignored (with the exception of %g).

If both a ruler and a grid are specified ("%r %g" or "%g %r"), the grid will always be displayed after the ruler if printed as a header, and before the ruler if printed as a footer.

The ruler specifier will be ignored unless V has been registered.