Link to home
Start Free TrialLog in
Avatar of ajaikumarr
ajaikumarr

asked on

How to execute SAVE As on silent mode using AXWebBrowser (VB.NET)?

Hai all,

I've to save the webpages on silent mode. I tried the below code but not able to hide the popup box.... anybody having any idea about how to hide the popup and programatically specify path to save HTML file?

Code written in VB.NET:-
AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_SAVEAS, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER, "C:\Ajai.html", "C:\Ajai.html")

Thanks in advance.
Ajai Kumar .R
ASKER CERTIFIED SOLUTION
Avatar of mmarinov
mmarinov

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
Avatar of ajaikumarr
ajaikumarr

ASKER

Sorry Mr. mmarinov,

I should have mentioned it before.... I can download HTML content using AxWebBrowser.Document.all(0).outerHTML and it's working perfectly... The problem with this is i can't save some of the images like mouseover images & some images which is written using javascripts. (As for as i searched dynamically linked[using javascripts] images can't be tracked... am i right???)

Do you have any idea about how to deal this?

Thanks in advance.
Ajai Kumar .R
as i'm not wrong in the posted links there was a part of it exactly for this problem
did you check them ?
B..M
Hai mmarinov,

Thanks for your help... I've solved the problem by writing my own code to download mouseover images. But i'm not able to handle dynamic links(Seems not possible).... Have to write code for handling framesets too. :)

If you found any code to handle dynamic links and framesets anywhere please pass it....

Thanks a lot...
Ajai Kumar .R



Hai mmarinov,

I'm going out on vacation... will be back by 13th of this month... Will check your comments asa i'm back.

Thanks,
Ajai Kumar .R