Microsoft KB Archive/827011

= How to add a header and page numbers to a form in Infopath 2003 or in InfoPath 2007 =

Article ID: 827011

Article Last Modified on 4/12/2007

-

APPLIES TO


 * Microsoft Office InfoPath 2007
 * Microsoft Office InfoPath 2003
 * Microsoft Office InfoPath 2003, Service Pack 1 (SP1)

-



IN THIS TASK

 * SUMMARY
 * Design your form
 * Preview and print your form
 * Additional format codes for printing



SUMMARY
This step-by-step article describes how to add a header, and how to add a footer with page numbers to a view at design time in Microsoft Office InfoPath 2007 or in Microsoft Office InfoPath 2003. The text in the header and in the footer is visible on your printed output. However, the text in the header and in the footer is not visible while you fill out a form.

back to the top

Design your form

 * 1) Start Microsoft Office InfoPath.
 * 2) In InfoPath 2007, click Design a Form Template on the File menu.

In InfoPath 2003, click Design a Form on the File menu.
 * 1) In InfoPath 2007, click Blank in the Design a Form Template task pane, and then click OK.

In InfoPath 2003, click New Blank Form in the Design a Form task pane.
 * 1) In the Design Tasks task pane, click Layout.
 * 2) In the Layout task pane, click Table with Title.
 * 3) Add any text to the title of your new form, and then add any text to the content of your new form.
 * 4) On the View menu, click Manage Views.
 * 5) In the Views task pane, click View1(Default), and then click View Properties.

The View Properties dialog box appears.
 * 1) In the View Properties dialog box, click the Print Settings tab.
 * 2) In InfoPath 2007, click Header, type the text that you want in the Print form with this header box, and then click OK.

In InfoPath 2003, type the text that you want in the Header text box.
 * 1) In InfoPath 2007, click Footer, type &bPage &p of &P in the Print form with this footer box, and then click OK.

In InfoPath 2003, type &bPage &p of &P in the Footer text box.
 * 1) Click OK.

back to the top

Preview and print your form

 * 1) In InfoPath 2007, point to Preview on the File menu, and then click Form. A preview of the form appears.

In InfoPath 2003, oint to Preview Form on the File menu, and then click Default. A preview of the form appears.
 * 1) While you are in Preview mode, click Print on the File menu.

The header text is aligned at the top left in the printed output. The footer text Page 1 of 1 is aligned on the right in the printed output.

back to the top

Additional format codes for printing
InfoPath uses the same printing mechanism (MSHTML) as Microsoft Internet Explorer. You can use the same codes for printing with InfoPath that you might typically use with Internet Explorer. The following table lists the codes that are available for printing.

back to the top

Additional query words: IP2007

Keywords: KB827011

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.