Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

activex control on this page might be unsafe

Status
Not open for further replies.

sharugan

Programmer
Jul 23, 2007
14
US
I have a spredsheet that contains the data.I need to display the spreadsheet in a browser when the user types the url of the website.it shouldn't show any alert message that "the activex control on this page might be unsafe"
how do i avoid the message from displying on the browser in the code .i am using code as follows.

function loadworddoc(){
doc = new ActiveXObject("Excel.Application"); // creates the word object
doc.Visible=true; // display Word window
doc.Workbooks.Open("D:\\two.xls"); // specify path to document
}
 
Using ActiveX and opening a local file in IE...
it's an IE security "thing", have yet to find the setting in IE to turn this annoying "popup" off.

Believe I saw something once about adding the local boxes drivepath/IP???
Into IE's trusted zones.


 
ADDENDUM...
Had some time to research...found it...
The "local zone" thing nolonger works...

"Newer" versions of IE (I'm still using v6)...
IE menubar...Tools...Internet Options...
Advanced tab...scroll towards bottom: Security...
"Allow active content to run in files on my computer"

Save, close, reopen IE.

Just tested with my local page with activeX...
...worked...no more annoying prompt!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top