Article ID: 156732 - Last Review: July 1, 2004 - Revision: 2.1 How To Print from the Microsoft WebBrowser ControlThis article was previously published under Q156732 On This PageSUMMARY
The Web Browser component of Internet Explorer 3.x and 4.x does not support
a Print method. You can still print the contents of the Web Browser
control using one of these methods:
MORE INFORMATION
The following code can be used to cause the Web Browser control to
print its contents. In this example, m_ctlWebBrowser is an instance of
the wrapper class generated by Class Wizard for the control.
m_ctlWebBrowser is contained in a dialog and initialized in the
OnInitDialog function. A Print button on the dialog is wired to an
OnPrint function. The Print button is enabled in response to the
NavigateComplete event of the Web Browser control.
Sample CodeFirst MethodSecond MethodREFERENCES
Internet Client SDK Online documentation.
APPLIES TO
| Article Translations
|


Back to the top
