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
Copyright © TouchNet 2015 all right reserved,powered by Gitbook最后修订时间: 2022-06-21 09:21:04

results matching ""

    No results matching ""