Welcome Guest Search | Active Topics | Sign In | Register

Support for "Always Open files of This Type" Options
Brendan Boyle
Posted: Friday, May 15, 2020 10:33:40 AM
Rank: Newbie
Groups: Member

Joined: 4/11/2019
Posts: 3
Hello,

In Chrome, users have the option of selecting "Always Open Files of this Type" if they want a file type to open on their machine immediately (as opposed to getting a download dialog). Is there any way to access this setting through EO WebBrowser? We would like to be able to have all excel files open automatically on the users machine for all users if possible.

Thanks!

Brendan
eo_support
Posted: Friday, May 15, 2020 1:07:02 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

You are getting confused by two totally different issue. "Always Open Files of this type" is a Windows feature. It has nothing to do with the browser. This feature controls what application Windows uses to open a specific type.

Whether the application you choose CAN open that file is a different story. For example, you can tell Windows to always open a bmp file with notepad, but obviously notepad won't be able to properly display the bmp image for you.

EO.WebBrowser CAN NOT display an Excel file because Google Chrome can not natively display Excel files. It maybe possible to do it through a Chrome extension with Google Chrome browser. However EO.WebBrowser does not support Chrome extensions.

For files that the browser engine natively support, you can control whether the file should be displayed or downloaded through this event:

https://www.essentialobjects.com/doc/eo.webbrowser.webview.shouldforcedownload.aspx

Thanks
Brendan Boyle
Posted: Friday, May 15, 2020 1:27:52 PM
Rank: Newbie
Groups: Member

Joined: 4/11/2019
Posts: 3
Hi,

Thanks for the reply. Let me clarify my question. I'm talking specifically about opening file downloads. While there may be such a settings in Windows, there is a setting in Chrome that controls whether a downloaded file type is automatically opened in your computers download directory or whether you get a download dialog that requires you to save the file.

Please see this blog post -> https://www.techjunkie.com/automatically-open-downloads-chrome/ (as well as numerous others available if you google this chrome functionality). You can find these settings in your chrome browser if you go to -> Settings -> Advanced -> Downloads. They specify your download location, whether to ask where to save each file before downloading and whether you want to open certain file types automatically after downloading.

Is there any way to configure these settings on the chromium engine bundled with EO? We do not want to open excel files in the browser itself. We want them to open on the users machine and Chrome is currently able to do this.
eo_support
Posted: Friday, May 15, 2020 2:55:45 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

You would control this behavior through the ShouldForceDownload event mentioned in our previous reply. Because our product is for programmers, not end users, there is no built-in end user facing UI. It is controlled through your code. If you would like to provide your own UI to configure how your code handles this event you can.

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.