Cool tip Eric! I did a little research and found the references below.
Aaron: you can also use this method to print GIF files as you were looking to do in another post:
#Define OLECMDID_PRINT 6
#Define OLECMDEXECOPT_PROMPTUSER 1
#Define OLECMDEXECOPT_DONTPROMPTUSER 2
#Define READYSTATE_COMPLETE 4
oIE = CreateObject("InternetExplorer.Application")
oIE.Navigate("MyGifFile.GIF")
Do While oIE.ReadyState <> ReadyState_Complete
EndDo
oIE.ExecWB(OLECmdID_Print, OLECmdExecOpt_DontPromptUser)
* Note that if you DO opt to prompt the user, and the cancel button is clicked, a trappable error will occur
MSDN References:
ExecWB MethodOLECMDID Constant definitions for first parameter of ExecWB
OLECMDEXECOPT Constant definitions for second parameter
READYSTATE Enumerated Type ReadyState property constants
Reusing the WebBrowser Control See "Printing the Current Page with the WebBrowser Control" on this page
kenweber
GCom2 Solutions
Microsoft Certified Professional