I've got a web browser control pointing to a web page which is updated every 60 seconds or so. I've written some code to parse the content of the web page and store the bits of information that I need. What I need to do next is refresh the page (which I've done), then save the page locally so I can read the core HTML. However, I can't get the page to automatically save (without the save dialog poping up).
My idea was to use this...
That doesn't work though, I just get an error saying that the ExecWB method failed.Code:Me.WebBrowser1.ExecWB OLECMDID_SAVECOPYAS, OLECMDEXECOPT_DONTPROMPTUSER, "C:\Whatever.html"
What am I missing ???


Reply With Quote