Link to home
Start Free TrialLog in
Avatar of assedaux
assedaux

asked on

Automatically saving htm docs from IE control

I'm trying to automatically save the html doc as it loads into a Browser control on a VB form. I'd like to save this doc WITHOUT prompting the user for the destination path but rather supplying this path and file name as one of the arguments to the ExecWB method of Browser control. Basically, I'm trying to execute this code:

MyBrowser.ExecWB(OLECMDID_SAVEAS, OLECMDEXECOPT_DONTPROMPTUSER, "C:\MyDoc.html", chr(0))

No matter how I manipulate with constants I have a standard SaveAs dialog popping up multiple times (exactly what I'm trying to avoid). Also I've seen some home pages declaring that despite of the existance of the OLECMDEXECOPT_DONTPROMPTUSER constant this functionality is not available/not working. I'd appreciate a simple working example if any.

THANKS

Assedaux
Avatar of AzraSound
AzraSound
Flag of United States of America image

i could never figure this one out either.  the only way i could think to do it was to write out the code myself (which is difficult if you want to save all the images).  hopefully someone can clear up this issue.
Avatar of assedaux
assedaux

ASKER

I have a team of four programmers trying to find an answer to this. Yes, I do ness to save all associated files (including images). The bottom line is that if the constant for this option exists, there should be an answer. Meanwhile we are closing the dialog by SendingKeys to it (ugly!!!)
ASKER CERTIFIED SOLUTION
Avatar of AzraSound
AzraSound
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm willing to spend some points for it even though I'm afraid I would have to go through a battle to use another control in the program. I have a very fat client. Also, although we got no luck by the end of the day today, we will continue to use all possible resources. I have opened a case with MS, but got no answer yet.

Thanks

 Assedaux
well post your email addy and i will send you what i was working on...maybe it will give you some ideas



assedaux@hotmail.com

I'll also let you know if i find something useful regarding using that damn constant... :-)

Thanks a lot!
<<I'll also let you know if i find something useful regarding using that damn constant>>

please do!!
Comment accepted as answer
thanks a lot for your help!!!!