Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

onlayoutcomplete event

Fires when the print or print preview layout process finishes filling the current LayoutRect object with content from the source document.

Syntax

HTML Attribute <element onlayoutcomplete = "handler(event)">
Event Property object.onlayoutcomplete = handler;
attachEvent Method object.attachEvent("onlayoutcomplete", handler)

 

Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Remarks

If the contentOverflow property on the event object is true when this event fires, the event handler should set the nextRect property in order to indicate the next LayoutRect to fill with the source document content.

Executes the script associated with this event.

To invoke this event, do one of the following:

  • Select the print or print preview option from the file menu of an application hosting MSHTML.

The pEvtObj parameter is required for the following interfaces:

  • HTMLAnchorEvents2
  • HTMLAreaEvents2
  • HTMLButtonElementEvents2
  • HTMLControlElementEvents2
  • HTMLDocumentEvents2
  • HTMLElementEvents2
  • HTMLFormElementEvents2
  • HTMLImgEvents2
  • HTMLFrameSiteEvents2
  • HTMLInputFileElementEvents2
  • HTMLInputImageEvents2
  • HTMLInputTextElementEvents2
  • HTMLLabelEvents2
  • HTMLLinkElementEvents2
  • HTMLMapEvents2
  • HTMLMarqueeElementEvents2
  • HTMLObjectElementEvents2
  • HTMLOptionButtonElementEvents2
  • HTMLScriptEvents2
  • HTMLSelectElementEvents2
  • HTMLStyleElementEvents2
  • HTMLTableEvents2
  • HTMLTextContainerEvents2
  • HTMLWindowEvents2

 

 

Show:
© 2015 Microsoft