Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

778 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