Solved

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

Posted on 2004-03-31
5
1,303 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 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 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