开发者

View Excel in WebBrowser control C#

开发者 https://www.devze.com 2023-02-22 00:39 出处:网络
I found a way to display excel file inside the WebBrowser control. I trying this article and this is my code.

I found a way to display excel file inside the WebBrowser control. I trying this article and this is my code.

private string _excelFileName="test.x开发者_Go百科ls";
webBrowser1.Navigate(_excelFileName,false);

When I compiled the application message coming saying Your current security settings do not allow this file to be downloaded

Please help to solve this problem.

Thank You


This is an issue with Internet Explorer. You need to open up Internet Explorer settings and make sure your security settings are not on High.

Alternatively, in order to enable File downloads in IE8 High Security settings:

  • Tools > Internet Options > Security
  • Click "Custom Level"
  • Scroll down to the "Downloads" section
  • Make sure File Download is Enabled
0

精彩评论

暂无评论...
验证码 换一张
取 消