You can define headers and footers for your printed information by using the Page Setup dialog box as explained in Printing Overview.
Headers and footers can contain the following fields:
● File Name (%F) prints the name of the file.
● Page Number (%P) prints the page number.
● Current Time (%T) prints the current time in the form hh:mm:ss AM/PM where hh is the hours, mm is the minutes, and ss is the seconds.
● Current Date (%D) prints the current date in the form mm/dd/yy where mm is the number of the month, dd is the day of the month, and yy is the last two digits of the year.
From the Page Setup dialog box, you can print the information in headers and footers by making selections from the Header or Footer popup menu. You can also type the format code (shown above in parentheses) into the Header or Footer edit box.
To include text in the header or footer, type the text in. You can use any alphanumeric character and punctuation mark except for the percent sign (%). ATEasy interprets the percent sign as a format code.
You can format text by using the following formats before the text you want to format. The format codes are in parentheses.
● Left Align (%L) aligns text with the left margin.
● Center (%C) centers text.
● Right Align (%R) aligns text with the right margin.
For example, the following codes:
%L%F %CPage:%P %R%T %D
Produce the following footer:
Program1.prg Page:1 10:46:19 AM 8/5/99