error while export ing to excel

var xls = new ActiveXObject(“Excel.Application”)

while comming accross this line its giving script error … server cannot intialize new object wat to do …

i need it tobe cross broswer … wat should i do

This functionality is IE specific, it will not work in any other browser.