* Navigate to page .... * Watt for page to load DO WHILE ThisForm.oleWeb.readystate <> 4 DOEVENTS() ENDDO ThisForm.oleWeb.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, 0, 0)BTW, there's a better way to wait for specified period of time. It doesn't use PC resources
Declare Sleep in WIn32api Integer nMilliseconds Sleep(1000) && wait 1 sec>this work fine and great, I put the execwb print code inside documentcomplete event but it sometimes can't print out the html