WebBrowser loading Excel Security Alert problem

T

tony-s

I have tried the axWebBrowser and also the the .NET WebBrowser and get
the same error message when navigating to an Excel file on the local
disk using Visual Studio 2005.

e.g.: WebBrowser1.Navigate("C:\docs\test.xls")

I then get a "security alert" dialog with "Your current security
settings do not allow this file to be downloaded".

I've tried changing the IE security setings for Intranet and Internet
but nothing seems to make any difference.

Has anyone got any ideas what could cause this?
 
T

tony-s

Some more information on this...

I've tried the same code on another PC and it runs ok, so looks like it
could be due to either an IE security patch or IE configuration setting
rather than VS 2005
 
G

Guest

I'm assuming this is the Microsoft Excel security level:
Go to: Tools > Macro > Security... and in the "Security Level" tab change to
Medium (if you select this you will be prompted if you are interested to open
the excel with this macro) or Low (- will open automatically).

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top