require ‘win32ole‘
excel=WIN32OLE.new("excel.application")
wbk=excel.workbooks.add()
#some operate on wbk and excel...
#.
#.
#.
wbk.close
wbk=nil
excel.quit
excel=nil
#Garbage collect
GC.start
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點擊舉報。