headerFooterFont property

Sets or retrieves a combination of strings that define font properties of the header and footer.

 

Syntax

JScript
bstrFooter = object.headerFooterFont

 

Property values

Type: String

font properties of the header and footer.

Remarks

The property values in bstrFooter are delimited by semicolons. A minimum of two properties are required: "font-family" and "font-size".

May contain any combination of these CSS Attributes: Color and Background and CSS Attributes: Font and Text property values:

Examples

The following example modifies the font used to print the header and footer.

BSTR    MyHeaderFooterFonts = SysAllocString( 
        L"font-family:courier new; font-size:12px; "
        L"font-style:italic; color:red; font-weight:bold" );

HRESULT hr = pTP3->put_headerFooterFont(      
    MyHeaderFooterFonts
);

SysFreeString( MyHeaderFooterFonts );