1创建 var XLObj = new ActiveXObject(“Excel.Application” ); var xlBook = XLObj.Workbooks.Add; //新增工作簿 var ExcelSheet = xlBook.Worksheets(1); //创建工作表 2.保存表格 ExcelSheet.SaveAs(“C:\\TEST.XLS” ); 3.使 Excel 通过 Application 对象可见 ExcelSheet.Application.Visible = true; 4.打印 xlBook.PrintOut; 或者: ExcelSheet.Print