473,396 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to automate save as in SHDocVw?

I'm trying to save a webpage in the IE object (SHDocVw) via save as "web
page complete". Using this code:

Me.IE_Inst.ExecWB(SHDocVw.OLECMDID.OLECMDID_SAVEAS ,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER , "C:\\Test Folder\\Some
Folder\\mypage.html", Nothing)

Everything works fine but the dialog box that prompts me to save waits for a
user click. Any ideas how to automate that click?

Thanks,
Brett
Nov 21 '05 #1
1 5569
"Brett" <no@spam.net> schrieb:
I'm trying to save a webpage in the IE object (SHDocVw) via save as "web
page complete". Using this code:

Me.IE_Inst.ExecWB(SHDocVw.OLECMDID.OLECMDID_SAVEAS ,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER , "C:\\Test Folder\\Some
Folder\\mypage.html", Nothing)

Everything works fine but the dialog box that prompts me to save waits for
a user click. Any ideas how to automate that click?


For security reasons that's not supported since IE4:

<URL:http://groups.google.de/groups?selm=L3yAKK0RCHA.2372%40cpmsftngxa07>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Hautzendorfer | last post by:
Hello, I'm currently working on some printing stuff: I have to print out several .xml files using a stylesheet. Therefor I choose the Internetexplorer PlugIn via SHDocVW. My problem: After...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
3
by: Wiktor Zychla | last post by:
I have a problem I cannot solve. My application hosts IE activex control. I follow the standard procedure: I just aximp shdocvw.dll. Note that this gives you two files: axshdocvw.dll and...
2
by: Or Lavy | last post by:
Hi there, As mentioned in message "aximp of shdocvw.dll -> problem with ShellExecute" posted before, aximp creates two files: AxSHDocVW.dll SHDocVW.dll The second has the same name as the...
7
by: Stan Sainte-Rose | last post by:
Hi, How can I save a page loaded with AxWebBrowser into a winform as an htm page ? Stan
0
by: And | last post by:
I use shdocvw InternetExplorer Object to open a pdf file and then I want to automatically save it but the web site from wich I'm downloading the file doesn't allows to save the file using the...
3
by: Doug Bell | last post by:
Hi How can I use VB.Net Application to open IE and get it to display; 1. a JPEG image from a file? 2. a JPEG image held in memory? Any guidance appreciated, Doug
0
by: satish | last post by:
Hi My code is as follows using mshtml.htmldocument class Imports mshtml Imports SHDocVw Public Class Form1 Inherits System.Windows.Forms.Form
0
by: satish | last post by:
Hi , I am automating internet. I am using mshtml and shdocvw.ddl for automations Can anyone tell me how to automate selection of items from list the e.g of html source is as given <select...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.