header Attribute

Microsoft Office InfoPath

Show All Show All

header Attribute

Specifies the header text when printing a view.

Type

      xsd:string
    

Remarks

The header attribute is an optional attribute of the printSettings element. The printSettings element also provides a footer attribute.

The header attribute cannot be greater than 255 characters in length.

When using a header or footer in a form, there are a number of variables that can be used to display information such as page numbers, dates, and times; or to align the text that the header or footer contains.

ShowHeader and footer variables

Example

The following is an example of the header attribute as it is used in the printSettings element:

    <xsf:view name="View" caption="View">
   <xsf:printSettings
      header="Header text goes here."
      footer="Footer text goes here."
      orientation="portrait"      
      marginUnitsType="in"
      topMargin="1"
      leftMargin="2"
      rightMargin="2"
      bottomMargin="1"
   </xsf:printSettings>
   ...
</xsf:view>