Code Monkey home page Code Monkey logo

lua-xlsx's Introduction

Introduction

The module xlsx allows read access to .xlsx files.

Example

    require 'xlsx'

    local workbook = xlsx.Workbook(filename)

lua-xlsx's People

Contributors

jjensen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lua-xlsx's Issues

third depend

Hello, can you add the depend library(such as 'ziparchive') code into this project?
You know, not all person use the luarocks.

opening xlsx consuming a lot of memory

Maybe it is not an issue

when testing, I open xlsx with 11.2MB (dimension: 30000x60), it goes to consume more than 1.2G and continue to go up, at that time ,my computer freezed,
I found the biggest consumer is lom.parse('xl/worksheets/sheet1.xml') and xmlize.xml_depth() in luaize().
It seems that parsing the whole xml at first make that problem .

While I just want to read the xlsx and store into database , could you give an example for faster and memory-conserved xlsx reader , thank you!

cell of FORMULA type invoke error in xlsx by Excel 2019

C:\xxx\lua53.exe: .\xlsx.lua:109: attempt to index a nil value (field '?')
stack traceback:
	.\xlsx.lua:109: in method '__load'
	.\xlsx.lua:308: in function 'xlsx.Workbook'
	...s\xxx\luaplus\Src\Modules\xlsx\tests\printxlsx.lua:6: in main chunk
	[C]: in ?

Which cell content is '=1+1'.

Where is workbook:Close()

local filename = "C:\\Users\\Administrator\\Desktop\\test.xlsx"  --normal and existing excel file, contains 1 sheet
local xlsx = require 'xlsx' 
local workbook = xlsx.Workbook(filename)
print("total sheets=" .. workbook:GetTotalWorksheets())  --print 1 , OK
workbook:Close() -- ERROR: attempt to call method 'Close' (a nil value)

workbook:Close() got removed ?

How can this be compiled under Linux

It seems that it need other repositories including ziparchive and xmlize but I failed to compile any of them. Both of them did not provide makefile and I don't know how to do it.
Hopes help. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.