Prints the document associated with the window.
Returns S_OK if successful, or an error value otherwise.
Calling the IHTMLWindow3::print method has the same effect as choosing Print from the File menu. The IHTMLWindow3::print method activates the Print dialog box, prompting the user to change print settings. When the user clicks the OK button, the following sequence of events occurs:
The onbeforeprint and onafterprint events are particularly useful when not all the information on the document is visible at all times. Use the onbeforeprint to modify the document to make all the information on the page visible for printing. To return the document to its original state, use the onafterprint event.