Rank: Newbie Groups: Member
Joined: 1/14/2015 Posts: 6
|
Hi,
I'm doing a implementation to display download progress information in EO.WebBrowser. Before the download begins I need to know if the user wants to Execute, Aave or Save as the file he wants to download. I use the event WebView.BeforeDownload and when the user select the option "Save As", I do e.ShowDialog = true.
To update the information in the form I use the event WebView.DownloadUpdated
My main problem is that the events WebView.DownloadUpdated and WebView.BeforeDownload starts at the same time, so the download begins before the user has selected Execute, Save or Save As or even cancelled the download! Is there a way to tell when to start the download?
Thank you for your support
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
This behavior is by design. The download automatically starts on the background as soon as the page is being requested. This way by the time the user decided to save or execute it, the download is already half way. If you do not wish the download to continue, you can get the DownloadItem object and then call Cancel on that object to cancel the item.
Thanks
|