?
Solved

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

Posted on 2004-03-31
5
Medium Priority
?
1,309 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 28

Accepted Solution

by:
mmarinov earned 1000 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

752 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