Rank: Advanced Member Groups: Member
Joined: 12/30/2013 Posts: 68
|
Is there an option in the webbrowser control for something like "open files after downloading" similar to chrome and IE? I am still having an issue when a user tries to view a PDF, the file does a "Savas"instead of opening and running.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
This part has nothing to do with EO.WebBrowser. When the download starts, the browser engine will always save the data it received to a temp file as the download progress. This temp file does not contain the full file data until DownloadCompleted event is fired. At which point the download is done and the temp file contains all file data. This is the point the file is handed to you and you decide what to do with it. For example, you can prompt the user to ask if the file is to be "Saved" or "Opened". If user answers "Save", then you copy this temp file to whereever the user wants you to save it at. If user answers "Open", you then "Open" it using whatever logic you see fit.
Thanks!
|