Insert a header or footer
When you design a form, you can specify that headers or footers appear in the top and bottom margins of the page when users print the form. If your form has multiple views, you can customize headers and footers for each distinct view.
- In design mode, click Header and Footer on the View menu.
- Under Headers and footers in the View Properties dialog box, do one of the following:
- To add a header to the form, click Header. In the Header Format dialog box, specify the text and formatting options you want.
- To add a footer to the form, click Footer. In the Footer Format dialog box, specify the text and formatting options you want.
To use a variable, such as the current page or today's date, in a header or footer, select the option you want in the Insert AutoText list. For example, to include today's date in a footer, click Short Date. The Short Date variable— &d — appears in the Print form with this footer box. When the form is printed, the current date will replace the Short Date variable. The following table lists the AutoText entries you can use to create a header or footer containing variables.
To print this | Use this AutoText | Variable |
---|---|---|
Title of form | Document Title | &w |
Date in short format (as specified by regional settings in Control Panel) | Short Date | &d |
Date in long format (as specified by regional settings in Control Panel) | Long Date | &D |
Time (as specified by regional settings in Control Panel) | Time (Regional Format) | &t |
Time in 24-hour format | 24-Hour Time | &T |
Current page number | Current Page | &p |
Total number of pages | Total Pages | &P |
Right-aligned text | Push Text Right | &b |
A single ampersand (&) | & | && |
Note The information in this topic may not apply if you are working with a form designed using Microsoft Office InfoPath 2003 without the service pack installed. Learn more