//汗。。 新建ActiveX对象 属性赋值了 var Excel, Book;// Create the Excel application object. Excel = new ActiveXObject("Excel.Application");// Make Excel visible. Excel.Visible = true;// Create a new work book. Book = Excel.Workbooks.Add()// Place some text in the first cell of the sheet. Book.ActiveSheet.Cells(1,1).Value = "This is column A, row 1";// Save the sheet. Book.SaveAs("C:\\TEST.XLS");// Close Excel with the Quit method on the Application object. Excel.Application.Quit();
ActiveX对象id.属性=数据 就赋值了
新建ActiveX对象
属性赋值了
var Excel, Book;// Create the Excel application object.
Excel = new ActiveXObject("Excel.Application");// Make Excel visible.
Excel.Visible = true;// Create a new work book.
Book = Excel.Workbooks.Add()// Place some text in the first cell of the sheet.
Book.ActiveSheet.Cells(1,1).Value = "This is column A, row 1";// Save the sheet.
Book.SaveAs("C:\\TEST.XLS");// Close Excel with the Quit method on the Application object.
Excel.Application.Quit();