Solved

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

Posted on 2004-03-31
5
1,294 Views
Last Modified: 2012-08-13
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
0
Comment
Question by:ajaikumarr
  • 3
  • 2
5 Comments
 
LVL 28

Accepted Solution

by:
mmarinov earned 250 total points
ID: 10723052
actually, what h have never user AXWebBrowser :-(
I've search on the EE and found these solutions. The problem that all EE are mensioned is that you can not avoid of the popup dialog box - see the 3rd link.
But you can manage with your code - the first link is just for that

look at this solutions

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20690385.html
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_10832222.html

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_10307863.htm - the 5th post is described about pop up the dialog boxes
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_10097758.html
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20792566.html

HTH
B..M
0
 
LVL 11

Author Comment

by:ajaikumarr
ID: 10729817
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
0
 
LVL 28

Expert Comment

by:mmarinov
ID: 10730001
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
0
 
LVL 11

Author Comment

by:ajaikumarr
ID: 10746520
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



0
 
LVL 11

Author Comment

by:ajaikumarr
ID: 10746571
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
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now