View Excel in WebBrowser control C#
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
精彩评论