AnsweredAssumed Answered

vfr - Printing From WebBrowser Active-X

Question asked by VRFuser on Jan 17, 1999

Further to my previous EMail, upon searching the MSDN library, it appears that the WebBrowser has no Print method !
They suggest two ways by which this can be achieved :

1. Set focus to the control and send the 'CTRL-P' keys
2. 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).

It would appear by 1st looks that the first option appears to be the simplest ???

Has anyone had experience in either of these approaches ?

Any help would be very gratefully appreciated,