Solved

Problem navigating html page from Excel 2013 shared addin

Posted on 2014-02-23
4
294 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
  • 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now