How To Print from the Microsoft WebBrowser Control (156732)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
This article was previously published under Q156732 SUMMARY
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:
- Set focus to the Web Browser control and send a key combination of
CTRL+P.
-or- - Call the GetDocument() method that returns an IDispatch*. Using the IDispatch*, call QueryInterface() on IID_IOleCommandTarget.
With the object pointer returned, call Exec(NULL, OLECMDID_PRINT,0, NULL,NULL).
REFERENCES
Internet Client SDK Online documentation.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto kbprint KB156732 |
---|
|