0

I am trying to create excel using javascript, i am using below code to do so.

var ExcelApp = new ActiveXObject("Excel.Application");  
var ExcelSheet = new ActiveXObject("Excel.Sheet");
ExcelSheet.Application.Visible = true;  
ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1";  
ExcelSheet.SaveAs("C:\\raj\TEST.xls");  
ExcelSheet.Application.Quit();

Somebody please point out where am making mistake.

1 Answer 1

1

I came to know that, this works only in IE, doesnt work in chrome or firefox.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.