Skip to content

mobilesolution2016/lj_xlsxio

Repository files navigation

sample code:

require('strext')
local xlsx = require('xlsxio')

local r = xlsx.read('d:/1.xlsx', { totable = true })

for i = 1, #r do
	local sheet = r[i]
	print('sheet', i, utf8str.togbk(sheet.name))
	
	for k = 1, #sheet.rows do
		local row = sheet.rows[k]
		print(row[1], row[2], row[3], row[4])
	end
end

About

A reader/writer for LuaJIT based on libxlsxio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published