xuri
b84bd1abc0
new formula fn: IF, LEN; not equal operator support and faster numeric precision process
4 years ago
xuri
c82a185af8
Compatibility improvement: parse document core part (workbook) dynamically
4 years ago
Ted
fcca8a3838
optimize memory allocation ( #722 )
...
* optimize marshal
* optimize mem alloc
* add benchmark testing
* add NewSheetWithRowNum testing
* sync struct fields order
* add BenchmarkNewSheetWithStreamWriter
* delete NewSheetWithRowNum and benchmark test
4 years ago
xuri
c3e92a51d7
Compatible with Go 1.15, fix unit test failed on Windows and fixed #689 potential race condition
4 years ago
xuri
843bd24e56
This closes #677 and closes #679 , fix panic when enabling compiler inline flags
5 years ago
xuri
13e7bce6d2
improvement compatibility for the XML ignorable namespace
5 years ago
xuri
ca43c65115
Update test for addTable
5 years ago
xuri
c922c32fb7
support parse and generate XML element namespace dynamic, fix #651
5 years ago
xuri
49257c5918
support case-sensitive doc parts to improve compatibility
5 years ago
xuri
15fd56853f
Update docs and typo fixed
5 years ago
xuri
5221729bc3
make columns iterator read cell streamingly and add max column limit on ColumnNumberToName
5 years ago
xuri
2ae631376b
add limits for total columns, row and filename length
5 years ago
xuri
7f78464f7f
add test for ReadZipReader, close #642
5 years ago
sachin-puranik
82bb1153d7
Improved error handling and stoped the crash due to fatel error ( #593 ) close #624
5 years ago
xuri
2efc7107ff
- transform the range to the matrix on the first arg of the formula
...
- typo fix
- reset cell with and height when insert picture into merged cell with autofit
5 years ago
xuri
48fc4c08a2
init formula calculation engine, ref #65 and #599
5 years ago
xuri
0f2a905324
Performance improvements
5 years ago
xuri
09485b3f9f
Improve code coverage unit tests
5 years ago
xuri
4e4a5b9b3e
Improve compatibility, fix workbook's rels ID calc error
5 years ago
Michael
9fe267ffcf
Pre-allocate some memory when reading files ( #510 )
5 years ago
xuri
9c70d0ac86
Documentation updated, Go 1.10+ required
6 years ago
xuri
0660f30cdd
godoc update and typo fixed
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
xuri
beff7b4f3c
Typo fixed and godoc 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
Olivier Mengué
e780e41e02
Faster TitleToNumber ( #343 )
...
* TestTitleToNumber: more test cases
* TitleToNumber: drop use of math.Pow()
Compute using pure integers
* TitleToNumber: simplify
Remove unecessary casts to int
6 years ago
xuri
fabd9d013f
README updated
6 years ago
HcySunYang
4dbc78ce0a
resolve #273 new feature: protect sheet support
...
new feature: protect sheet support, relate issue #273
6 years ago
xuri
1c45425f12
resolve #276 , add OfficeOpenXML-XMLSchema-Strict mode support
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
b4a6e61ec3
Fix golint errors under confidence 0.1
6 years ago
xuri
ec37b114c3
Fixes #256 and format document.
7 years ago
xuri
79dfe1c307
GoDoc updated.
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
xuri
9e463b4614
- Add error return value for functions: `AddChart()`, `AddComment()`, `AddPicture()`, `AddShape()`, `AddTable()` and `SetConditionalFormat()`
...
- go test has been updated
7 years ago
Lunny Xiao
38ad20efc1
save bytes on memory instead of string
7 years ago
mbresson
317ef65381
make SetCellStyle quicker by skipping conversions in checkCellInArea, and skipping area checks when we are sure the cell can't be before or past the current row/col
...
Signed-off-by: Matthieu Bresson
7 years ago
Olivier Mengué
88e48e079a
Add SetSheetViewOptions and GetSheetViewOptions ( #145 )
...
Two new methods:
- SetSheetViewOptions(sheetName string, viewIndex int, opts ...SheetViewOption) error
- GetSheetViewOptions(sheetName string, viewIndex int, opts ...SheetViewOptionPtr) error
The option values are given by the user through types that have privates methods
that implement the private SheetViewOption and SheetViewOptionPtr interfaces:
- DefaultGridColor(bool)
- RightToLeft(bool)
- ShowFormulas(bool)
- ShowGridLines(bool)
- ShowRowColHeaders(bool)
Examples:
err := xl.SetSheetViewOptions("Sheet1", -1, excelize.ShowGridLines(true))
var showGridLines excelize.ShowGridLines
err := xl.GetSheetViewOptions("Sheet1", -1, &showGridLines)
Fixes #145 .
7 years ago
Ri Xu
1f93fc7bad
Optimize code.
7 years ago
lichaofei
787495c503
Update lib.go
7 years ago
lichaofei
1169042f7d
Update lib.go
7 years ago
Ri Xu
1ec2661dda
Bugfix: deep copy issue with function `CopySheet()`, relate PR #108 .
8 years ago
Ri Xu
555e2ba9a8
- Make function `TitleToNumber()` exportable, note that function `ToAlphaString()` return value calculation changes, get more info from go doc. Relate issue #63 ;
...
- Readme and go doc updated
8 years ago
Ri Xu
35841caaf1
- Function `formattedValue()` performance improvement by avoid repeating deserialization, relate issue #64 ;
...
- Make function `ToAlphaString()` exportable, relate issue #63
8 years ago
Ri Xu
1f73f08185
- New feature: border setting support (Related issue #21 );
...
- Function parameter code is simplified;
- Fix element `Tint` value parsing error in worksheet;
- Update go test
8 years ago
Josh Fyne
d9f4a2f154
Standardize input and output
8 years ago
Ri Xu
0833a9d5da
- Improved performance when reading large files, call Token to read tokens one by one instead Unmarshal. Related issue #20 ;
...
- Fix go test typo;
- Update README
8 years ago
Ri Xu
bd5b033b02
Support set work sheet background image.
8 years ago
Ri Xu
9559f454a7
Fix issue #17 , update README and fix typo.
8 years ago
Ri Xu
52796f6e58
Format commants, break comments after 80 characters.
8 years ago
Ri Xu
f05df2a018
- New function `SetSheetName` and `SetColWidth` added, support rename sheet and set column width;
...
- Add escape characters of sheet name;
- Update go test and fix typo
8 years ago
Ri Xu
9e8d36ce59
- Performance improvement, remove `replaceRelationshipsID` and `workBookCompatibility` functions;
...
- New functions `GetActiveSheetIndex`, `GetSheetName` and `GetSheetMap` added.
8 years ago
Ri Xu
f958f05a3b
- Fix issue: sheet protection and conditional formatting proprietary missing after save;
...
- Update workbook and sheet relationships and self-close tag replacement hack functions
8 years ago
Ri Xu
75abc628fe
Update godoc of package.
8 years ago
Ri Xu
2e8fa2d39c
Use conjunction with strings.Map to split Axis and update godoc.
8 years ago
Ri Xu
0dd0fba96b
Move execute checkRow logic when XLSX file open, speed up library write file.
8 years ago
Ri Xu
df8f85d6ab
Open file error return added and UpdateLinkedValue function added to fix linked values within a spreadsheet are not updating.
8 years ago
Ri Xu
50863294f9
Fix issue #2 change project to object-oriented style and update readme file.
8 years ago
Ri Xu
956a4627d1
Fix issue #4 use builtin `map` instead of home-built.
8 years ago
Ri Xu
192af02a40
Format code with golint rules
9 years ago
Ri Xu
0e61ae7eda
1) Update readme file credits and go report badge added; 2) Remove use less function; 3) Update test file.
9 years ago
Ri Xu
a9d3ee2869
Init commit.
9 years ago