Welcome Guest Search | Active Topics | Sign In | Register

Web Browser opening files Options
PeterG
Posted: Monday, July 20, 2015 7:19:20 AM
Rank: Newbie
Groups: Member

Joined: 7/20/2015
Posts: 2
Hiya, I am new to using the EO WebBrowser and I know it is based on Chrome but im wondering if there is a way to open files?

I know this is a security issue and the fact that IE allows it doesn't mean others should, but there is a requirement that i have that i need this functionality for.

Is it possible to do in EO?
eo_support
Posted: Monday, July 20, 2015 10:03:53 AM
Rank: Administration
Groups: Administration

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

Yes. It's possible if you set this property to false:

http://www.essentialobjects.com/doc/eo.webbrowser.browseroptions.enablewebsecurity.aspx

See here for more information on how to set browser options:

http://www.essentialobjects.com/doc/webbrowser/advanced/browser_options.aspx

Thanks!
PeterG
Posted: Monday, July 20, 2015 10:26:59 AM
Rank: Newbie
Groups: Member

Joined: 7/20/2015
Posts: 2
Thanks for that.

This does work but prompts the user to save the file with a dialogue box.

Is there anyway to just simply open the file without this?

For example the Local Links module for Chrome allows this. Is there a way to add modules to EO as it is chrome based, or might there be another setting I can change that will allow this functionality?

Pete
eo_support
Posted: Monday, July 20, 2015 10:30:53 AM
Rank: Administration
Groups: Administration

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

You can pass a file path directly to WebView.LoadUrl. However whether EO.WebBrowser can open it successfully depends on what kind of files you want to open. If it is a file format that the browser engine natively understand (for example, a HTML file), then it will open. If it is a file that requires a plug-in, then that plug-in must exists on your system. Note a plug-in is registered with Chrome does not mean it is registered with EO.WebBrowser. See here for more information on how EO.WebBrowser loads plug-ins:

http://www.essentialobjects.com/doc/webbrowser/advanced/plugin.aspx

Additionally, Chrome supports Chrome extension. EO.WebBrowser does not support Chrome extension. So if the file you are trying to open requires a Chrome extension, then EO.WebBrowser will not be able to open it.

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.