Commit Graph

526 Commits

Author SHA1 Message Date
xuri 5e418ebd66
Resolve #507, add the new function `DeleteDefinedName` 2019-10-26 20:55:24 +08:00
xuri 87390cdd99
Resolve #511, allow empty columns in the pivot table 2019-10-24 23:18:02 +08:00
Michael 9fe267ffcf Pre-allocate some memory when reading files (#510) 2019-10-24 22:14:33 +08:00
xuri e7581ebf3e
Fix corrupted Excel file issue #413 2019-10-23 10:08:29 +08:00
xuri 7716968abc
Fix #505, support set line width of the line chart 2019-10-21 00:04:18 +08:00
ducquangkstn 866fda2300 fix #503 rows next issue 2019-10-18 14:57:35 +08:00
xuri 2e791fa433 Optimize code of Getting/Setting Page Margins 2019-10-17 00:02:39 +08:00
streboryaj 2d21b5b50f Added accessors for Getting/Setting Page Margins (#497)
* Added accessors for Getting/Setting Page Margins

* Added test cases
2019-10-15 22:26:08 +08:00
xuri af100372a0
Merge pull request #498 from heiy/master
solve ending space missing
2019-10-10 22:40:37 +08:00
heiy 810139f5fc solve ending space missing 2019-10-10 20:04:33 +08:00
xuri a00ba75f0f
Fix #493 Merge pull request #495 from jaby/493-ShowZeros
Add missing ShowZeros SheetViewOption implementation
2019-09-30 21:05:31 +08:00
jaby babfeb6b57 Add missing ShowZeros SheetViewOption implementation 2019-09-30 14:39:30 +02:00
xuri eb520ae277
Improve compatibility for charts 2019-09-26 22:28:14 +08:00
xuri 475fbf3856
Create SECURITY.md 2019-09-25 11:12:16 +08:00
xuri a34d3b8c86
Compatibility improvement 2019-09-24 21:53:19 +08:00
xuri 75d66a03f3
Fix #482, font strike style support 2019-09-23 21:50:03 +08:00
Christian Fiedler 3280e1b686 Allow access to more formula attributes in SetCellFormula (#484)
* Allow access to more formula attributes in SetCellFormula

Make SetCellFormula variadic to not break API.
The new arguments are option arguments in which the type of
the formula and the ref attribute may be set.
These need to be set for an array formula to work.

* Add TestWriteArrayFormula to test optional parameters of SetCellFormula

TestWriteArrayFormula writes a document to the test directory that
contains array formulas that are used to calculate standard deviations.
The file also contains values calculated by the Go testcase, so the
results can be verified. It should be tested, if the array formula
works (i.e. shows a number, not an error) and that the values calculated
by the formula and those calculated by Go are the same.
2019-09-22 20:52:01 +08:00
xuri 3c636da460
Resolve #40, init pivot table support 2019-09-20 00:20:30 +08:00
xuri eef232f09e
Fix #483, adjust the order of fields in the structure 2019-09-18 00:47:31 +08:00
xuri 8922f65978
Combine functions:
workBookRelsWriter, drawingRelsWriter into relsWriter;
drawingRelsReader, workbookRelsReader, workSheetRelsReader into relsReader;
addDrawingRelationships, addSheetRelationships into addRels
2019-09-16 01:17:35 +08:00
xuri a3ee098ab6
Fix #466, #480 Merge pull request #481 from bvwells/modules
Fix dependency on github.com/360EntSecGroup-Skylar/excelize v1
2019-09-14 22:08:24 +08:00
Ben Wells 3c327413d9 Fix dependency on github.com/360EntSecGroup-Skylar/excelize v1 2019-09-13 11:40:16 +01:00
xuri acbabcf8fc
Add pivot table cache definition struct 2019-09-08 21:57:55 +08:00
xuri b30c642e2b Prepare pivot table support, add pivot table definition struct 2019-09-06 00:01:20 +08:00
xuri 0acb3ef968
Testing files updated 2019-09-02 21:52:55 +08:00
Vsevolod Balashov 1fc4bc52fb Fix #386 regression test added (#440)
* #386 regression test added

* closes #386 string to bigint on GOARCH=386
2019-09-01 12:30:14 +08:00
xuri 333c5881c0
Merge pull request #479 from mtmcfarl/patch-1
Updating Readme
2019-09-01 12:23:19 +08:00
Matthew McFarling 875dd22bd0
Updating Readme
Removing the /v2 on the package url as it does not work with the ```go get``` command.
2019-08-28 17:05:27 -04:00
xuri 407fb55c20
Update the Godoc 2019-08-21 23:03:34 +08:00
xuri da99334fca
Merge pull request #475 from mqy/master
add missing error check in SetSheetRow()
2019-08-19 16:52:14 +08:00
mqy 64809db2c9 add missing error check in SetSheetRow() 2019-08-19 15:53:56 +08:00
xuri 3092ce6e54
Merge pull request #473 from dolmen-go/cell-Sprint
SetCellValue: use fmt.Sprint(v) instead of fmt.Sprintf("%v", v)
2019-08-14 10:17:29 +08:00
Olivier Mengué ac395a60ed SetCellValue: use fmt.Sprint(v) instead of fmt.Sprintf("%v", v)
Because that does the same thing, but without having to parse a format
string.

Signed-off-by: Olivier Mengué <dolmen@cpan.org>
2019-08-13 15:57:35 +02:00
xuri 9c70d0ac86
Documentation updated, Go 1.10+ required 2019-08-11 00:36:14 +08:00
xuri adc4aed472
Merge pull request #464 from mlh758/fix-462
Fixed #462 Handle multi row inline strings
2019-08-11 00:12:58 +08:00
xuri 23c8d1ec8a
Merge pull request #469 from zaddok/patch-1
Fix potential memory leak
2019-08-10 00:07:09 +08:00
Harris acd76425c2
Handle multi row inline strings
The inline string struct is actually the same
as the shared strings struct, reuse it.

Note that Go version 1.10 is required.

Fixes #462
2019-08-09 08:12:08 -05:00
xuri e6b7ac9a03
Merge pull request #463 from mlh758/fix-457
Get sheet names based on index
2019-08-09 09:23:28 +08:00
zaddok 5107928892
Fix potential memory leak
Fix potential memory leak where zw is not Close() when an error occurs.
2019-08-09 09:47:06 +10:00
Harris faaaa52cb8
Get sheet names based on index
SheetID only seems to indicate the file name for the sheet.
Check the sheets list based on index instead. Reordering sheets
in Excel changes the order they appear in that list.

Fixes #457
2019-08-08 08:19:18 -05:00
xuri 448f5524a8
Merge pull request #461 from mlh758/fix-439
Further improve read performance
2019-08-08 09:47:00 +08:00
Harris e07581e980
Further improve read performance
Instead of re-encoding the full sheet to change the namespaces
in the encoded bytes, read the sheet again and do the byte
replacements there.

In this case, file access ends up being more performant than
marshaling the sheet back to XML.

In the SharedStrings test, ensure the strings are actually read.

Fix #439
2019-08-07 08:06:40 -05:00
xuri d8df51098f
Merge pull request #458 from zhaov/master
Update comments
2019-08-07 09:07:14 +08:00
xuri 3599b24c95
Merge pull request #459 from WuXu1995/master
Bugfix #454
2019-08-06 10:30:12 +08:00
WuXu1995 497ad8f4be
Bugfix #454 2019-08-06 10:00:10 +08:00
zhaov 58a79b4172
Update comments 2019-08-06 09:50:45 +08:00
xuri 451e6e384a
Merge pull request #456 from mlh758/fix-439
Fix #439
2019-08-05 22:18:31 +08:00
Harris ac91ca0ded
Only parse xml once when reading
We were parsing the whole sheet twice since the
sheet reader already reads in all the rows.

getTotalRowsCols function is unused after these changes
so it has been deleted as well.

Closes #439
2019-08-05 08:50:45 -05:00
xuri cbe919fdf6
New feature: sparkline supported 2019-08-04 20:24:59 +08:00
xuri 1092009541
Fixed doc corruption when deleting all merged cells 2019-08-03 23:10:01 +08:00