IHeaderFooter::title Property

Sets or retrieves the title of the document currently being printed or print-previewed.

Syntax


HRESULT IHeaderFooter::get_title(BSTR *p);HRESULT IHeaderFooter::put_title(BSTR v);

Parameters

p
Pointer to a variable of type BSTR that receives the title of the document currently being printed or print-previewed.
v
BSTR that specifies the title of the document currently being printed or print-previewed.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The memory returned in p can be freed with SysFreeString.

You can obtain the title from the document object referenced by the __IE_BrowseDocument property of the dialogArguments object or the contentDocument property of the LAYOUTRECT element.

Show: