?
Solved

Problem navigating html page from Excel 2013 shared addin

Posted on 2014-02-23
4
Medium Priority
?
316 Views
Last Modified: 2014-03-25
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.
0
Comment
Question by:pkoivula
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 19

Expert Comment

by:regmigrant
ID: 39909820
try making the document 'trusted' in Excel using the guide in this link
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.
0
 

Accepted Solution

by:
pkoivula earned 0 total points
ID: 39944490
We tried this option, but it didn't work.
We could resolve the issue by using Mark of the web in the local htm files. Please find the below link for more details:

http://msdn.microsoft.com/en-us/library/ms537628(v=vs.85).aspx
0
 

Author Comment

by:pkoivula
ID: 39944494
The issue got resolved by using Mark of the web in the local htm files.
0
 

Author Closing Comment

by:pkoivula
ID: 39952685
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question