500pnts!! - GetObject In Javascript

I have the following script in an aspx in a client script section.

<script language="javascript">
var oXlApp;

function getExcelInstance()
  { // this never works even if excel is running
    alert("Get Object Works!!");
    alert("Get Object Failed:- "+ex.message);
      oXlApp=new ActiveXObject("Excel.Application.11");
      alert("ActiveXObject Works!!");
      alert("ActiveXObject Failed:- " + ex.message);
  <input type="button" onclick="getExcelInstance();" value="clickMe" ID="Text1" NAME="Text1"/>

The GetObject never works even if there is a running instance which there is after the 1st time hitting the button. I get Automation Server Can't Create Object. The activeXObject then fires and I get an instance of excel for each button click.

I've got a really urgent deadline and this is my last bug!! Surely an easy 500pnts for someone out there!


This is really urgent as I've got
Who is Participating?

"Cannot Call GetObject from Script in IE to Access Running Object
Calling GetObject to get a running ActiveX object on a client system would be a large security risk because any running object on the system could be accessed without direct user permission, and is therefore not allowed by Internet Explorer. There is no way to change this behavior, either through code or manually by an end user.
GillyTheTaffyAuthor Commented:
that is the worst correct answer I have ever had - but thanks for confirming that for me
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.