>>Could someone try turning this code from VB into VFP.
>>
>
>What's the bottom line here? To print what is in a browser control that is outside of the ap... or, to print an activeX browser that the app started?
>
>>
>> Private Sub Command1_Click()
>> Dim hwnd As Long
>> WebBrowser1.SetFocus
>
>The above line implies that WebBrowser1 was created perhaps in this form???
>
He's trying to print the content of a browser window by sending a Ctrl-P to the browser. The reference WebBrowser1 is either an OLE Automation client or an AcxtiveX browser control launched by the VB application; he activates the targeted client, grabs its hWnd, and then sends a Ctrl-P to trigger the browser's Print method indirectly. VFP lacks a direct equivalent of the Sendkeys function in V; it could be accomplished using the API call SendMessage() or PostMessage().
>BOb