Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internet explorer
Message
De
22/08/2001 10:36:44
 
 
À
22/08/2001 09:05:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00547165
Message ID:
00547267
Vues:
15
>>>Hi
>>>
>>>Does anyone know the Method to automate IE Object to Print/Print Preview?
>>>
>>>Thanks
>>>Kev
>>
>>You can use the Windows Scripting Host to send keystrokes to any application. Don't ask me for details though - I haven't done it.
>>
>>Hilmar.
>
>Hilmar
>
>Thanks, but I'd rather know the direct function calls, otherwise I would have to install WSH on a very large amount of PC's.
>
>Kev

Look at the MSHTML command identifiers for the ExecWB method: http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/commandids.asp to see if this is what you are looking for.

Particularly IDM_PRINT & IDM_PRINTPREVIEW. Of course this works only with IE5.5 and above. Although there isn't much there in the form of samples for this. Also see http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/printpreview/reference/reference.asp

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform