Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internet explorer
Message
From
22/08/2001 10:36:44
 
 
To
22/08/2001 09:05:11
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00547165
Message ID:
00547267
Views:
12
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform