Header/Footer Format Codes
Format codes can be entered into the Header and/or Footer field in the Page Setup dialog box. These affect the contents and/or appearance of the associated header or footer line printed on the report. Only one line of text is allowed for a header or footer.
The following table lists the special formatting codes (which can be entered in upper or lower case). The codes are read from left to right in the Header or Footer field and are implemented in the order read.
Format Code Description
&L Left-aligns the characters that follow
&C Centers the characters that follow
&R Right-aligns the characters that follow
&D Prints the current date
&T Prints the current time
&F Prints the project name
&P Prints the page number
&P+number Prints the page number plus number
&P-number Prints the page number minus number
&& Prints an ampersand
&N Prints the total number of pages in the document
Footer example: &CPage &P of &N (Produces centered Page # of ##)
Header example: &L&D&R&T (Places date at left and time at right of page.)
Codes and text are, by default, centered unless &L or &R is specified.
The alignment codes (&L, &C and &R) restart each section. New font codes can be specified after an alignment code, but must appear before other codes and text or they are ignored.
Format Code Description
&B Use a bold font
&I Use an italic font
&U Underline the text
&S Strikethrough the text
&"fontname" Use the specified font, such as "Arial"
&nn Use the specified font size - (a 2-digit number)
Header example: &L&08&D&&R&08&T
Header example including text: &L&08&D&C&B&13&Gem Employment, Inc.&R&08&T