Excelize is a library written in pure Go offering a set of features that permit you to write to and skim from XLAM / XLSM / XLSX / XLTM / XLTX information. Helps studying and writing spreadsheet paperwork generated by Microsoft Excel™ 2007 and later. Helps advanced parts by excessive compatibility, and supplied streaming API for producing or studying knowledge from a worksheet with big quantities of information.
GitHub: github.com/xuri/excelize
We’re happy to announce the discharge of model 2.7.1. Featured are a handful of latest areas of performance and quite a few bug fixes.
Launch Notes
Probably the most notable modifications on this launch are:
Breaking Change
- Take away the
Colour
area within theChartLine
knowledge sort - Substitute the info sort
ShapeParagraph
withRichTextRun
- Take away the
Colour
area from the sortForm
, and makes use of theFill
as a substitute of it - Take away the exported sort
AutoFilterListOptions
- Rename the exported sort
TableOptions
toDesk
- The
AddChart
operate require utilizingChartType
enumeration worth to specify the chart sort - Change 7 features signature:
- Change the
func (f *File) AutoFilter(sheet, rangeRef string, opts *AutoFilterOptions) error
tofunc (f *File) AutoFilter(sheet, rangeRef string, opts []AutoFilterOptions) error
- Change the
func (f *File) AddPictureFromBytes(sheet, cell, title, extension string, file []byte, opts *GraphicOptions) error
tofunc (f *File) AddPictureFromBytes(sheet, cell string, pic *Image) error
- Change the
func (f *File) GetPicture(sheet, cell string) (string, []byte, error)
tofunc (f *File) GetPictures(sheet, cell string) ([]Image, error)
- Change the
func (f *File) AddVBAProject(bin string) error
tofunc (f *File) AddVBAProject(file []byte) error
- Change the
func (f *File) GetComments() (map[string][]Remark, error)
tofunc (f *File) GetComments(sheet string) ([]Remark, error)
- Change the
func (f *File) AddTable(sheet, rangeRef string, opts *TableOptions) error
tofunc (f *File) AddTable(sheet string, desk *Desk) error
- Change the
func (sw *StreamWriter) AddTable(rangeRef string, opts *TableOptions) error
tofunc (sw *StreamWriter) AddTable(desk *Desk) error
- Change the
Notable Options
- Add new features
SetSheetDimension
andGetSheetDimension
for workbook dimension helps, associated challenge #1463 - The
NewStyle
operate help to create of 17 sorts of fill variants kinds - Improve max cell kinds restrict to 65430
- The
AddPicture
operate permitting insert BMP format pictures - The
GetPictures
operate help to get a number of pictures in a cell - The
SetConditionalFormat
operate help to making a conditional format with a “cease if true” or “icon units” rule - The
SetConditionalFormat
operate help to set border coloration and create strong coloration for the colour knowledge bar, associated challenge #1462 - The
AddChart
operate help to set the format for the chart knowledge collection strong fill, associated challenge #1474 - The
AddChart
operate help to set the bubble measurement in a knowledge collection - The
AddChart
operate help to specifies the values in second plot for the bar/pie of pie chart - The
AddChart
operate help to set quantity format for chart knowledge labels and axis, associated challenge #1499 - The
AddTable
operate help to specify if present header row of the desk when create the desk - The
AddTable
operate help to validate desk title, and added a brand new error fixedErrTableNameLength
, associated challenge #1468 - The
AutoFilter
operate help so as to add a number of filter columns when create auto filter - The
CalcCellValue
operate help to specify if making use of quantity format fashion for the cell calculation outcome - The
CalcCellValue
operate help double-byte chars for system features: LEFT, LEN, LENB, MID, MIDB, RIGHT and RIGHTB, associated challenge #1476 - The
CalcCellValue
operate now returns system error string within the outcome, and utilizing the error message in returns error, associated challenge #1490 - Case-insensitive for the picture file extension title, associated challenge #1503
- The stream author might be skip set cell worth when received nil worth, associated challenge #756
- The
GetCellHyperLink
operate help get cell hyperlink for merged cells - Add new exported knowledge sort
ChartType
for represents chart sort enumeration
Enhance the Compatibility
- Add help for workbook operate teams
- Add help for strict theme namespace, associated challenge #1447
- Repair panic attributable to the workbook relationship half not exist
- Enhance compatibility with SST index which accommodates clean characters, associated challenge #1508
Bug Fixes
- Repair decimal quantity format spherical challenge in some circumstances
- Repair incorrect cell sort when modifying string cell with the time quantity, resolve challenge #1464
- Repair cell resolver brought about incorrect calculation outcome, resolve challenge #1469
- Repair conditional format knowledge bar min/max worth doesn’t work, resolve challenge #1492
- Helps 0 row top and column width, resolve challenge #1461
Efficiency
- Enhance efficiency for apply quantity format with month title, associated challenge #1455
- Pace up for checking merged cells, associated challenge #1448
Miscellaneous
- A pure WebAssembly / Javascript port of Go Excelize library named excelize-wasm NPM bundle has been production-ready use
- The dependencies module has been up to date
- Unit assessments and godoc up to date
- Utilizing the specialised title in variables and features
- Documentation web site with multilingual: Arabic, German, Spanish, English, French, Russian, Chinese language, Japanese, and Korean, which has been up to date
Thanks
Thanks for all of the contributors to Excelize. Beneath is an inventory of contributors which have code contributions on this model:
- liron-l (Liron Levin)
- nathj07 (Nathan Davies)
- Josh-Weston (Josh Weston)
- jaby
- FlowingSPDG (Shugo Kawamura)
- barismar (Baris Mar Aziz)
- doingNobb (张涛)
- rpoetrap (Rizki Putra)
- huangshaokun
- CHANTXU64 (ChantXu64)
- playGitboy