|
|
|
date: Fri, 21 Mar 2008 00:09:23 +0100,
group: microsoft.public.inetsdk.programming.webbrowser_ctl
back
Trying to pass by the 'store or open file' message using Delphi 7, TWebBrowser, IE7, XP SP2
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
date: Fri, 21 Mar 2008 00:09:23 +0100
author: Franz Maurer
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" wrote in message
news:47e2eeae$0$316$e4fe514c@dreader24.news.xs4all.nl...
> 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
>
>
date: Fri, 21 Mar 2008 11:02:37 -0600
author: Sheng Jiang[MVP] uss
Re: Trying to pass by the 'store or open file' message using Delphi 7, TWebBrowser, IE7, XP SP2
Thanks for the help.
I replaced my
WebBrowser1.Navigate('http://www.epra.com/downloadChart.jsp');
statement with the Wininet code I found on
http://delphi.about.com/od/internetintranet/a/get_file_net.htm
and now everything runs smoothly.
Thanks again.
Franz
"Sheng Jiang[MVP]" <sheng_jiang@hotmail.com.discuss> schreef in bericht
news:uHrQO02iIHA.3940@TK2MSFTNGP05.phx.gbl...
> 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" wrote in message
> news:47e2eeae$0$316$e4fe514c@dreader24.news.xs4all.nl...
>> 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
>>
>>
>
>
date: Sun, 23 Mar 2008 14:47:55 +0100
author: Franz Maurer
|
|