>>>>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
Thanks for the info. Our corporate standard is I.E. 5.0. Oh well...