Solved

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

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

13 Experts available now in Live!

Get 1:1 Help Now