Solved

Problem navigating html page from Excel 2013 shared addin

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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

729 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