Welcome Guest Search | Active Topics | Sign In | Register

WebBrowser option "öpen files" Options
Rick Morayniss
Posted: Wednesday, May 6, 2015 10:26:42 AM
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.
eo_support
Posted: Wednesday, May 6, 2015 5:10:24 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.