Partager via


onafterprint property

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

Syntax

HRESULT value = object.put_onafterprint(VARIANT v);HRESULT value = object.get_onafterprint(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 after taking a snapshot for printing. You may want to undo markups to a document that were made for printing such as re-expanding collapsed lists or making hidden elements.

See also

Reference

HTMLWindowEvents::onafterprint

HTMLWindowEvents::onbeforeprint

IHTMLBodyElement2::onbeforeprint

IHTMLDocument3::attachEvent

IHTMLDocument3::attachEvent