We are pleased to announce the release of version 2.1.0. Featured are a handful of new areas of functionality and numerous bug fixes.

A summary of changes is available in the Release Notes. A full list of changes is available in the changelog.

Release Notes

The most notable changes in this release are:

Notable Features

  • New function DeleteDefinedName, support to delete the defined names of the workbook or worksheet
  • New functions SetPageMargins and GetPageMargins, support to for getting setting page margins
  • New functions DeleteChart and DeletePicture, support to delete chart and images from the worksheet
  • Add support for Excel file that uses no UTF-8 encoding
  • The function AddChart now support to create the pie of pie chart, the bar of pie chart and combo chart The function AddChart now support to set minor grid lines for the chart, relate issue #501 The function AddChart now support to set line width of the line chart, relate issue #505 The function AddChart now support to set a major unit and tick label skip for the chart, relate issue #538
  • The function SetColVisible now support to set column visible by column range
  • The function AddPivotTable allow empty columns in the pivot table, relate issue #511

Bug Fixes

  • Fix missing ending space text of the cell
  • The MergeCell function support overlapped merge cells, resolve issue #533
  • Added handling of empty inline rich text in some case, resolve issue #529
  • Added handling of empty workbook view in some case, resolve issue #426
  • Added handling of escape character in the formula, resolve issue #546

Performance

  • New functions NewStreamWriter and Flush to generate the new worksheet with huge amounts of data. Compared to non-streaming writing, reduced memory usage by 90.2%, time cost by 53%
  • Make GetRows function read data as streaming. Reduced memory usage by 78.9%, relate issues #146 and #382
  • Compatibility improvements, adding 49 internal XML namespaces support

Miscellaneous

  • Added logging of possible errors when decoding XML, relate issues #539
  • Improve code coverage unit tests (line Coverage: 97.04%)
  • Add missing checking error in unit tests
  • Documentation website with multilingual: English, French, Russian, Chinese, Japanese, and Korean, which has been updated

项目简介

Excelize 是 Go 语言编写的一个用来操作 Office Excel 文档类库,基于 ECMA-376 OOXML 技术标准。可以使用它来读取、写入 XLSX 文件,相比较其他的开源类库,Excelize 支持操作带有数据透视表、切片器、图表与图片的 Excel 并支持向 Excel 中插入图片与创建简单图表,目前是 Go 开源项目中唯一支持复杂样式 XLSX 文件的类库,可应用于各类报表平台、云计算和边缘计算系统

发行版本 22

v2.8.1

全部发行版

贡献者 229

全部贡献者

开发语言

  • Go 100.0 %