Jul 10, 2013 Internet Explorer: Disable “Do you want to open or save this file?” download prompt Posted on July 10, 2013 July 26, 2015 by Luca Sturlese Recently I was asked to disable the “Do you want to open this file?” or “Do you want to open or save this file?” prompt in Internet Explorer. On my system it will display PDF file without any prompt. It says 'Internet Explorer 11' version 11.0.9600.16476 update 11.0.2 in the About windows, but nowhere.
When the user tries IE just prompts the user to download the file. With the message (rough translation) 'ie have prevented the file from being downloaded' and then you can click on the yellow bar to open/download the file. I would like it to be possible to open.pdf files without any prompts, inside the browser. For more info about Internet Explorer, see Internet Explorer help. Although Internet Explorer 11 comes already installed on Windows 10, if you accidentally deleted it, you can download and reinstall it by selecting one of the buttons below.
Active2 years ago
We receive emails with links to documents, or more precisely, links to webpages that contain buttons we click to download documents. I want to automate this under Office 2016, IE 11, and Windows 7 Enterprise. I've gotten this far.
In VBA, I set references to Microsoft HTML Object and Internet Controls libraries. I load the page, locate the button control on the page, and issue the button's click method. Then I get the prompt you see above. I want to save as.. that is, each downloaded file will go in a particular directory. How would you do that?
EDIT: The URL to the file is not contained in the web page's source. The code for the Download button is this:
The prompt is not part of the webpage, so I can't use HTML to find the button. I could use SendKeys (not ideal), but even then, I could only send Alt-S to save. Is there a way of virtually clicking on the down arrow to expose the Save As option? But if I do this, how do I enter the location of the file? Would I have to somehow control the actual Save As dialog box?
Assuming I can use SendKeys to send an Alt-S, just before doing that, I could change the registry key that holds the default download location. But this would involve writing to the registry hundreds of times per day. Are there consequences to this? Do I risk corrupting the registry?
EDIT:
RobertSF
RobertSFRobertSF
1 Answer
Since you have the URL of the page you have just about everything you need to get the file, Part of the post has a version param that does not seem to be included in the original URL. So in short parse out the download button url to get the DocumentLocator ID and the PublicKey. You can also parse through the HTML which has all the info, DocLocID, Version and Key as well.
this is the html source of the form in https://eservices.truecertify.com/?loc=1DC-IAJJJ4-AE58564C&key=Asbg
this is where you get the data to assemble the final URL string Prepaid visa card hacks online.
.
2,05311 gold badge55 silver badges1212 bronze badges
Internet Explorer Download File Without PromptingSorceriInternet Explorer Download Prompt Not ShowingSorceri
6,68211 gold badge1919 silver badges3333 bronze badges
Not the answer you're looking for? Browse other questions tagged vbainternet-exploreroutlook-vba or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |