textHead property

Sets or retrieves the control string used by the HeaderFooter behavior to generate HTML for the header.

Syntax

HRESULT value = object.put_textHead(BSTR v);HRESULT value = object.get_textHead(BSTR* p);

Property values

Type: BSTR

the control string used to generate HTML.

Remarks

The memory returned in p can be freed with SysFreeString.

Typically, a print template sets this property using the header property of a TemplatePrinter behavior located on the same page. When this property is set, the HeaderFooter behavior will generate HTML for the header. This HTML can be retrieved from the htmlHead property of the HeaderFooter behavior and inserted in the pages (DeviceRects) of the print template as desired.

You can specify any valid character sequence in the Windows Internet Explorer Page Setup dialog box, located on the File menu. See the main HeaderFooter reference page or Internet Explorer Help for a list of the formatting codes.

See also

textFoot