//com.excel库范例
import com.excel;

var excel = com.excel()
//excel.Visible = true; //使Excel窗口可见
excel.alerts = false; //关闭所有操作提示

var book = excel.WorkBooks.Add() //创建工作簿
// book = excel.WorkBooks.Open( io.fullpath("\test.xls") )
  
var sheet = excel.ActiveWorkbook.Sheets(1);
var cell = sheet.Cells(1,1);
cell.Value2 = "haha"   
 
io.open()
io.print( cell.Text )

excel.Quit(); //退出