hi, nice work.
I see that Word is ok now. after I call add(), it create a blank document.
and any further operation is OK. after calling app:quit() the process disappear.
but Excel is kind of strange.
after I call add(), it actually create two 2 blank workboot.
and it prompt some error "attempt to call a COM value "
and, after calling app:quit() the process still exist.
but any further operation is OK. there's no problem to add sheet or cell
► app = sys.COM"Word.Application"
► app.visible = true
► app.documents:add()
{
constructor = method
}
► app:quit()
► app = sys.COM"excel.application"
► app.visible = true
► app.workbooks:add()
>>> attempt to call a COM value (method 'add')
► app.workbooks.count
2
if execute it using luart script:
app = sys.COM"excel.application"
app.visible = true
book = app.workbooks:add()
print('book count', app.workbooks.count)
app:quit()
test.lua:3: attempt to call a COM value (method 'add')
then exit
seems that it got called twice?