Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB HELP!
Message
De
20/05/1999 19:53:50
 
 
À
20/05/1999 19:41:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00221197
Message ID:
00221208
Vues:
23
>>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform