onbeforeprint
Collapse the table of content
Expand the table of content

onbeforeprint property

Sets or retrieves a pointer to the event handler function that is called when the HTMLWindowEvents::onbeforeprint event is fired.

Syntax

HRESULT value = object.put_onbeforeprint(VARIANT v);HRESULT value = object.get_onbeforeprint(VARIANT* p);

Property values

Type: VARIANT

the IDispatch interface of an object with a default method that is invoked when the event occurs.

Remarks

This property provides a way to specify a function that can change a document's markup for printing. For example, you may want a document to expand collapsed lists, make hidden elements visible, create a watermark, and so on.

See also

Reference
HTMLWindowEvents::onbeforeprint
HTMLWindowEvents::onafterprint
IHTMLWindow3::onafterprint
IHTMLDocument3::attachEvent

 

 

Show:
© 2016 Microsoft