• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jmcnamara/xlsxwriter.lua: A lua module for creating Excel XLSX files.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jmcnamara/xlsxwriter.lua

开源软件地址(OpenSource Url):

https://github.com/jmcnamara/xlsxwriter.lua

开源编程语言(OpenSource Language):

Lua 78.5%

开源软件介绍(OpenSource Introduction):

Xlsxwriter for Lua

A Lua module for creating Excel XLSX files.

Note: this module is no longer maintained. It is functional and if it meets your requirements then please use it. However, no new features will be added.

The xlsxwriter module

Xlsxwriter is a Lua module that can be used to write text, numbers, formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file. It supports features such as:

  • 100% compatible Excel XLSX files.
  • Full formatting.
  • Memory optimisation mode for writing large files.
  • Merged cells.
  • Worksheet setup methods.
  • Defined names.
  • Document properties.

It works with Lua 5.1 and Lua 5.2.

Here is an example:

--
-- A simple example of some of the features of the xlsxwriter module.
--

local Workbook = require "xlsxwriter.workbook"

local workbook  = Workbook:new("demo.xlsx")
local worksheet = workbook:add_worksheet()

-- Widen the first column to make the text clearer.
worksheet:set_column("A:A", 20)

-- Add a bold format to use to highlight cells.
local bold = workbook:add_format({bold = true})

-- Write some simple text.
worksheet:write("A1", "Hello")

-- Text with formatting.
worksheet:write("A2", "World", bold)

-- Write some numbers, with row/column notation.
worksheet:write(2, 0, 123)
worksheet:write(3, 0, 123.456)

workbook:close()

demo image

See the full documentation at: http://xlsxwriterlua.readthedocs.org

Release notes: http://xlsxwriterlua.readthedocs.org/changes.html




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
pubnub/lua: lua发布时间:2022-08-16
下一篇:
niemand-sec/LuaHook: Example of how to hook Lua for Game Hacking发布时间:2022-08-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap