Headers and footers, which are located at the top and bottom of the page and separate from the document, can include not only "AutoText", page numbers, but also more interesting applications.
In addition to WordPad most of the word processing application software allows users to design a different home page document format, such as the left and right column format. If you use headers and footers in conjunction with some properties, the layout of the Word document is more user-friendly and more satisfying.
Some word enthusiasts, from version 1, have been studying its breadth and depth. Recently, they ran into a problem--a colleague needs to create a header on the first page only, while the footer is only on the last page of the document template. The number of pages in this document template should be variable, that is, you don't have to make any settings, and the headers and footers appear on the first and last pages of the entire document respectively.
The challenge of this problem is that only the header appears on the first page, the last page footer, and the rest of the pages do not appear. One suggestion that can be used is to use endnote, which usually appears at the end of the document. The caveat, however, is that first of all, endnote does not appear at the bottom of the last page but follows the last paragraph; second, a endnote must be attached to the annotation in the text so that it can be easily deleted. A good way is to use a non-first page footer to check whether it is the last one and then enter the text.
So you need to insert a "field" statement whether it's a home page footer or a non-home footer:
{IF {PAGE} = {NumPages}
"This text is appears on the
Last Page "}
Tip: You don't actually need to enter {} manually, just hold down the CTRL and F9 keys to get the empty curly braces. You can enter the contents and the equals sign in the general. When the domain is selected, the ALT and F9 keys are pressed, and the results of the code in the field are seen.
You may encounter a problem when trying this method, even if you set a "different home page" for the header and footer, but you still can't move the text footer to the template. The trick here is to get a second page with a page break in the template to get the headers and footers that aren't on the front page.
After the headers and footers have been set, delete the page breaks. The document template is then converted to a separate page that records headers and footers. Remember to hold down the ALT and F9 keys at the same time before you save the document to make sure you get the results in the domain and not just the code (and other users will see the code). Finally, select Tools, Options, print, and update fields.