pkoivula
asked on
Problem navigating html page from Excel 2013 shared addin
Hi,
We have a .net shared addin which creates toolbar in excel. When clicked on the buttons, we navigate a html page which has javascript embedded in it. We use a windows form with web browser control to navigate to html pages. These html pages have active x code. Till now we were supporting upto Office 2010 where it is working fine. When we tested it in Office 2013, we found that toolbar actions are getting hanged.
As we analyzed we found that the javascript is not executed as navigation of html is going to Document completed event immediately. We believe this is because we are getting security warning "To help protect your security, your web browser has restricted this file from showing active content that could access your computer. Click here for options...". We tried IE and Excel settings to enable the Active X content, but it didn't work.
How to navigate to html page (with javascript and Active X content) from web browser control in excel 2013 without the content getting blocked by the web browser control?
Thanks in advance.
We have a .net shared addin which creates toolbar in excel. When clicked on the buttons, we navigate a html page which has javascript embedded in it. We use a windows form with web browser control to navigate to html pages. These html pages have active x code. Till now we were supporting upto Office 2010 where it is working fine. When we tested it in Office 2013, we found that toolbar actions are getting hanged.
As we analyzed we found that the javascript is not executed as navigation of html is going to Document completed event immediately. We believe this is because we are getting security warning "To help protect your security, your web browser has restricted this file from showing active content that could access your computer. Click here for options...". We tried IE and Excel settings to enable the Active X content, but it didn't work.
How to navigate to html page (with javascript and Active X content) from web browser control in excel 2013 without the content getting blocked by the web browser control?
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The issue got resolved by using Mark of the web in the local htm files.
ASKER
Excel 2013 was restricting the active content of the htm files. Hence by adding MOTW, it allowed the active content to run in htm by using the settings from Internet zone.
http://office.microsoft.com/en-gb/excel-help/trusted-documents-HA010354384.aspx
and add the website URL to 'trusted sites' under Internet Options, Security Tab.