The following formatting codes are used to format the text strings placed in the headers and footers. If you are using the XML profiles to configure the endorsements you will need to use the XML character entities & and " to represent the ampersand (&) and quotation marks (") to allow the XML data to be interpreted correctly.

Header and Footer Formatting Codes

XML Code

String Code

Description

&P

&P

This code is replaced by the current page number.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="Page &amp;P"/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "Page &P")

 

&amp;N

&N

This code is replaced by the total number of pages in the output file.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="Page &amp;P of &amp;N"/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "Page &P of &N")

 

&amp;B

&B

Turns bold formatting on and off. All text after the first occurrence of the formatting code will be bold until the same formatting code is encountered again.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="&amp;BInternal Use&amp;B - Confidential"/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "&BInternal Use Only&B - Confidential")

 

&amp;I

&I

Turns italic formatting on and off. All text after the first occurrence of the formatting code will be italicized until the same formatting code is encountered again.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="&amp;IDo Not Copy&amp;I - Confidential"/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "&IDo Not Copy&I - Confidential")

 

&amp;U

&U

Turns font underlining on and off. All text after the first occurrence of the formatting code will be underlined until the same formatting code is encountered again.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="&amp;UDo Not Copy&amp;U - Confidential"/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "&UDo Not Copy&U - Confidential")

 

&amp;S

&S

Turns font strike though formatting on and off. All text after the first occurrence of the formatting code will be struck though (a line down the middle of the text) until the same formatting code is encountered again.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="&amp;SInternal Use&amp;S - Confidential"/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "&SInternal Use Only&S - Confidential")

 

&amp;X

&X

Turns font superscript formatting on and off. All text after the first occurrence of the formatting code will be printed in superscript (appears smaller than the normal line of type and is set slightly above it) until the same formatting code is encountered again.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="This is &amp;Xsuperscript text&amp;X - Confidential"/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "This is &Xsuperscript text&X - Confidential")

 

&amp;Y

&Y

Turns font subscript formatting on and off. All text after the first occurrence of the formatting code will be printed in subscript (appears smaller than the normal line of type and is set slightly below it) until the same formatting code is encountered again.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="This is &amp;Ysubscript text&amp;Y - Confidential"/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "This is &Ysubscript text&Y - Confidential")

 

&amp;'fontname'

&'fontname'

Sets the font to be used for the following text. All text after the occurrence of the formatting code will be printed in the specified font until another font formatting code is encountered again. The default font is Arial.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="This is Arial and &amp;'Verdana'this is Verdana."/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "This is Arial and &'Verdana'this is Verdana.")

 

&amp;n

&n

Sets the font size, in points, to be used for the following text, where n is replaced with the desired point size. All text after the occurrence of the formatting code will be printed in the specified font size until another font size formatting code is encountered again. The default font size is 12 points.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="&amp;14This is Arial 14 point."/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "&14This is Arial 14 point.")

 

&amp;K000000

&K000000

Changes the color of the text. All text after the occurrence of the formatting code will be printed in the color specified until another color formatting code is encountered again. The default color is Black. The color is specified as six character RGB code.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="This is &amp;KFF0000Red, this is &amp;K00FF00Green."/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "This is &KFF0000Red, this is &K00FF00Green.")

 

&amp;&amp;

&&

Allows the insertion of an ampersand character into the text.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="Printed by Company &amp;&amp;Company"/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "Printed by Company && Company")

 

&#x0A;

\r\n

Allows the insertion of a newline character into the text.

 

XML Example:

<add Name="Endorsements;HeaderLeftFormat"

    Value="Line 1&#x0A;Line 2"/>

 

String Example:

item.Set("Endorsements;HeaderLeftFormat",

        "Line 1\r\nLine 2.")