xuri
a88459d5f1
add unit tests to functions
6 years ago
xuri
f2df344739
Resolve #369,#370
...
add error return value
exported functions:
GetMergeCells
ProtectSheet
UnprotectSheet
UpdateLinkedValue
GetMergeCells
SetSheetVisible
inner functions:
workSheetReader
copySheet
6 years ago
Aplulu
841ff4a03e
Fix out of range panic when removing formula.
...
Fix file corruption issue when deleting a sheet containing a formula.
6 years ago
xuri
40ff5dc1a7
refactor: handler error instead of panic,
...
Exported functions:
SetCellStyle
InsertCol
RemoveCol
RemoveRow
InsertRow
DuplicateRow
DuplicateRowTo
SetRowHeight
GetRowHeight
GetCellValue
GetCellFormula
GetCellHyperLink
SetCellHyperLink
SetCellInt
SetCellBool
SetCellFloat
SetCellStr
SetCellDefault
GetCellStyle
SetCellValue
MergeCell
SetSheetRow
SetRowVisible
GetRowVisible
SetRowOutlineLevel
GetRowOutlineLevel
GetRows
Columns
SearchSheet
AddTable
GetPicture
AutoFilter
GetColVisible
SetColVisible
GetColOutlineLevel
SetColOutlineLevel
SetColWidth
GetColWidth
inner functions:
adjustHelper
adjustMergeCells
adjustAutoFilter
prepareCell
setDefaultTimeStyle
timeToExcelTime
addDrawingChart
addDrawingVML
addDrawingPicture
getTotalRowsCols
checkRow
addDrawingShape
addTable
6 years ago
Michael
2874d75555
Add benchmark for adding images to sheet ( #367 )
...
* Add benchmark for adding images to sheet
This should help track performance regressions in future changes.
* Only transform sheet name if necessary
6 years ago
xuri
40ea8eb014
resolve #360 , fix axis parse issue when add / get pictures;
...
typo fixed and go test updated
6 years ago
Veniamin Albaev
dc01264562
Huge refactorig for consistent col/row numbering ( #356 )
...
* Huge refactorig for consistent col/row numbering
Started from simply changing ToALphaString()/TitleToNumber() logic and related fixes.
But have to go deeper, do fixes, after do related fixes and again and again.
Major improvements:
1. Tests made stronger again (But still be weak).
2. "Empty" returns for incorrect input replaces with panic.
3. Check for correct col/row/cell naming & addressing by default.
4. Removed huge amount of duplicated code.
5. Removed ToALphaString(), TitleToNumber() and it helpers functions at all,
and replaced with SplitCellName(), JoinCellName(), ColumnNameToNumber(), ColumnNumberToName(), CellNameToCoordinates(), CoordinatesToCellName().
6. Minor fixes for internal variable naming for code readability (ex. col, row for input params, colIdx, rowIdx for slice indexes etc).
* Formatting fixes
6 years ago
xuri
f66212da9b
Resolve #106 , #294 performance optimization for add hyperlink
6 years ago
xuri
0072bb7310
resolve the issue corrupted xlsx after deleting formula of cell, reference #346
6 years ago
kkxkkxkkgh
81948d9e1e
The function SetPageLayout support set paper size
6 years ago
zhangleijlu
034de7acd8
Resolve #318 , add new functions and
6 years ago
xuri
fabd9d013f
README updated
6 years ago
xuri
9a6f66a996
New feature: the function `SearchSheet` now support regular expression, relate pull request #316
6 years ago
r-uchino
9b8baf75ad
Add RegSearchSheet ( #316 )
6 years ago
xuri
e728ff1498
Fixes #308 , refactor `NewSheet()`, `DeleteSheet()`, `SetActiveSheet()` and `GetActiveSheetIndex()`
6 years ago
xuri
81b43da7b6
Fix comments according to best practices by effective go
6 years ago
xuri
b89f75c896
Add new logo for excelize
6 years ago
taomin597715379
1bb59f75ea
resolve #297 , fix GetSheetMap() failed
...
Change-Id: I585a4a017867b89bd39cb6e711467a46eaa757be
6 years ago
q523591
51857a217d
New function `UnprotectSheet()` has been added
6 years ago
HcySunYang
4dbc78ce0a
resolve #273 new feature: protect sheet support
...
new feature: protect sheet support, relate issue #273
6 years ago
peng
e2e58a3a44
New function: `SearchSheet()`, relate issue #277
6 years ago
xuri
1c45425f12
resolve #276 , add OfficeOpenXML-XMLSchema-Strict mode support
6 years ago
xuri
204139739a
Merge branch 'master' into master
6 years ago
xuri
3e004d900b
Comments style changed.
6 years ago
xuri
13a9769cc5
Comments style changed.
6 years ago
xuri
2f146c923c
Comments style changed.
6 years ago
xuri
6ced438f39
New function `AddPictureFromBytes()` has been added, this resolve #259 and close #271 .
6 years ago
xuri
b4a6e61ec3
Fix golint errors under confidence 0.1
6 years ago
xuri
ec37b114c3
Fixes #256 and format document.
7 years ago
xuri
a3571ee39b
Bugfix: create worksheet cause file issue. Relate issue #249 .
7 years ago
Olivier Mengué
4a1b406456
CopySheet() using reflect instead of encoding/gob
...
Use github.com/mohae/deepcopy to deep copy worksheets instead of the
internal deepcopy function that was using encoding/gob serialization and
deserialization.
Rationale:
1/ using `encoding/gob` is much slower than
[`mohae/deepcopy`](https://github.com/mohae/deepcopy/ )
2/ When building an application this implementation of `deepcopy` drags
the `encoding/gob` package into the binary. And this package is much
bigger than `mohae/deepcopy` (which only depends on `time` and `reflect`).
```
$ LC_ALL=C stat -f "%6z %N" $(go env GOPATH)/pkg/$(go env GOOS)_$(go env GOARCH)/github.com/mohae/deepcopy.a $(go env GOROOT)/pkg/$(go env GOOS)_$(go env GOARCH)/encoding/gob.a
10508 .../pkg/darwin_amd64/github.com/mohae/deepcopy.a
541818 .../pkg/darwin_amd64/encoding/gob.a
```
7 years ago
Sebastian Willing
ccdefb3b16
Documentation:
...
* Add information about return value of NewSheet()
* Minor documentation language fixes
Samples:
* Added sample go file for dumping a XLSX file to the console
7 years ago
xuri
9e463b4614
- Add error return value for functions: `AddChart()`, `AddComment()`, `AddPicture()`, `AddShape()`, `AddTable()` and `SetConditionalFormat()`
...
- go test has been updated
7 years ago
xuri
d96440edc4
- Performance optimization 20% faster, 14% memory savings on set cell values;
...
- Using the canonical syntax in issue template and contributing guide;
- go test has been updated
7 years ago
xuri
167554bfec
Improve unit testing, remove redundant code.
7 years ago
Lunny Xiao
38ad20efc1
save bytes on memory instead of string
7 years ago
Ri Xu
200437d778
Fix document typo.
7 years ago
Ri Xu
a9c7d6637c
- Support to set the positioning of a picture, relate issue #214 ;
...
- go test and godoc has been updated
7 years ago
Ri Xu
d65b30055d
- Update the function `NewSheet()` to handle when already exists a worksheet of the same name, relate pull request #196 ;
...
- go test and godoc has been updated
7 years ago
Ri Xu
06e54bf1c6
Readme and godoc has been updated.
7 years ago
Ri Xu
749d12eece
- Fix `DeleteSheet()` make broken file, relate issue #165 ;
...
- godoc updated
7 years ago
Ri Xu
f10ee929d0
- Bugfix: use sheet name in func `AddPicture`, relate issue #142 ;
...
- godoc updated
7 years ago
Ri Xu
ebafbdde73
Bugfix: use sheet name in func `AddChat`, relate issue #138
...
Signed-off-by: Ri Xu <xuri.me@gmail.com>
7 years ago
Ri Xu
905be463ed
Improve code readability.
7 years ago
Ri Xu
b7b937a8a3
godoc updated.
7 years ago
Ri Xu
f05f799f8d
- API changed, use worksheet name instead of "sheet" + index, related issue #25 , #43 , #47 , #51 , #89 , #101 , #116 and #120 .
...
- go test updated
7 years ago
Ri Xu
1ec2661dda
Bugfix: deep copy issue with function `CopySheet()`, relate PR #108 .
8 years ago
Takayuki Usui
02728de4d2
Conut and trim sheet name in UTF-8
8 years ago
Ri Xu
6626a26f7b
Simplify code and update unit tests.
8 years ago
Ri Xu
308776e350
Optimize code, go test and godoc updated.
8 years ago