I am trying to open and excel file using javascript.. i keep getting
"Uncaught ReferenceError: ActiveXObject is not defined"
How can I fix this error?
function LoadValue()
{
var app = new ActiveXObject("Excel.Application")
if(app!=null){
return true;
app.visible = true;
document.getElementById("f1").src = 'myApp.workbooks.open("C:\\Documents and Settings\\Adnan\\Desktop\\MIS\\Reports\\Sales\\2005_Daily_Sales.xls")';
}
return false;
}