Re: Trying to pass by the 'store or open file' message using Delphi 7, TWebBrowser, IE7, XP SP2



You can get the URL and download it using wininet. You may need extra
requests if the downloading needs authentication.


--
Sheng Jiang
Microsoft MVP in VC++
"Franz Maurer" <franz.maurer@xxxxxxxxx> wrote in message
news:47e2eeae$0$316$e4fe514c@xxxxxxxxxxxxxxxxxxxxxxxxxxx
Just was pointed at this newsgroup, but cannot retrieve history before
7-3-2008. So it could be I'm asking a question posed previously. Could
someone point me to the answer in that case? Thanks in advance.

I have been writing a program (using Windows XP SP2, Delphi 7 and
TWebBrowser) to do an auto fill of forms on a web page, i.e.
http://www.epra.com/indices.jsp

After having filled in all parameters in the last step I try to get
returned
a file by virtually pressing the Download Data button
(http://www.epra.com/downloadChart.jsp) (in this example with quotes from
real estate indexes).

But .... instead of having the possibility to just store that data file
somewhere I do get a message box asking me whether I want to store or open
the file. This is true for systems running IE7, not IE6.

Of course, it is a security measure to prevent downloading and installing
without user consent of files on his / her machine.

But in this case, the auto fill program just is written to automatically
download quotes. So user interference is not acceptable.

I have been looking around on the internet for days, but cannot find a
solution to prevent appearing this message box or to respond to it from my
program. This does not succeed because it is a modal window, preventing my
program to do something until you clicked on it so it disappears, after
which my program is given control again.

I also tried to find a setting in the registry by which you possibly could
disable this feature. But I did not find anything. So I'm not so hopeful
to
be able to set a kind of 'feature control' in the Internet Explorer part
of
the registry.

Does somebody have any idea or could you point me in a direction, where I
could look further to a possible solution?

I would be very grateful for your help.

Regards,

Franz Maurer




.