local excel = CTNXExcel();
-- 新建一个空的工作簿,未保存
if excel:newEmpty() == false then
print('new failed');
else
print('new success');
end;
-- 保存
if excel:save('E:/test_class/test_excel.xlsx') == false then
print('save failed');
else
print('save success');
end
-- 打开
if excel:open('E:/test_class/test_excel.xlsx') == false then
print('open failed');
else
print('open success');
end
-- 关闭
if excel:close() == false then
print('close failed');
else
print('close success');
end