xuri
5bf3ea6154
This closes #842 , avoid empty rows in the tail of the worksheet
4 years ago
xuri
be12cc27f1
This closes #652 , new SetColWidth API, support set column width in stream writing mode, and export error message
4 years ago
xuri
f8f699a172
Go 1.15 and later required, #65 fn: IMABS, IMCOS, IMCOSH, IMCOT, IMCSC, IMCSCH, IMEXP, IMLN and IMLOG10
4 years ago
xuri
2af96c0714
#65 fn: N, PERCENTILE.INC and T
...
typo fixed
4 years ago
xuri
36b7990d6b
lint issue fixed and new formula function: ATAN, AVERAGE, AVERAGEA, CONCAT, CONCATENATE, COUNT, COUNTBLANK, MAX
4 years ago
xuri
30549c5e90
fix custom row height check issue
4 years ago
xuri
2fb135bc94
handle end element event in the worksheet row/column iterator XML SAX parser
4 years ago
xuri
b84bd1abc0
new formula fn: IF, LEN; not equal operator support and faster numeric precision process
4 years ago
xuri
1bc5302007
Fixed #764 , add a condition for round precision
4 years ago
xuri
576bfffbe6
This closes #752 , fix incorrectly merged cells on duplicate row, and new formula function: LOWER, PROPER, UPPER
4 years ago
xuri
599a8cb0bc
Fixed #727 , rounding numeric with precision for formula calculation
4 years ago
xuri
92c8626f81
Fixed #732 , support single line with repeated row element in the sheet data
4 years ago
Eugene Androsov
2be4bfd410
Fix row duplicate mechanism ( #729 )
4 years ago
xuri
2514bb16c6
Fix #724 , standardize variable naming and update unit tests
4 years ago
xuri
5dd0b4aec2
using POSIX directory separator in zip path with Windows
4 years ago
xuri
cdc57db3b3
Fix race conditions
4 years ago
xuri
c82a185af8
Compatibility improvement: parse document core part (workbook) dynamically
4 years ago
Artem Kustikov
f2b8798a34
extend cell value load to support custom datetime format ( #703 )
...
* extend cell value load to support custom datetime format
* cleanup incorrect imports
* fix numeric values conversion as done in legacy Excel
* fix tests coverage
* revert temporary package name fix
* remove personal info from test XLSX files
* remove unused dependencies
* update format conversion in parseTime
* new UT to increase code coverage
* Resolve code review issue for PR #703
* Rename broken file name generated by unit test
Co-authored-by: xuri <xuri.me@gmail.com>
4 years ago
xuri
324f87bcae
add checking and limits for the worksheet
4 years ago
xuri
88de2f8d51
Default row height compatibility with Apache OpenOffice and Kingsoft WPS, unit test update and typo fixed
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
c922c32fb7
support parse and generate XML element namespace dynamic, fix #651
5 years ago
xuri
820a314cfb
Resolve #667 , support shared string table without unique count
5 years ago
xuri
49257c5918
support case-sensitive doc parts to improve compatibility
5 years ago
xuri
f7bd0729c6
Resolve #32 , fix missing leading/leading spaces when working with SST
5 years ago
xuri
1cbb05d497
GetCols support the row element without r attribute in the worksheet
5 years ago
xuri
48f19f60aa
support the row element without r attribute in the worksheet
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
c168233e70
speedup get cell value from shared string table
5 years ago
xuri
5c99300ee4
Fix #622 , storage string to SST (shared string table)
5 years ago
xuri
98221a332f
Merge pull request #410
5 years ago
xuri
2285d4dc71
handle the cell without r attribute in a row element
5 years ago
xuri
0f2a905324
Performance improvements
5 years ago
foxmeder
59f6af21a3
fix reading wrong string from xml such as below
...
<sheetData><row r="1"><c r="A1" s="1" t="s"><v>0</v></c><c r="B1" s="1" t="s"></c></row></sheetData>
5 years ago
xuri
3f89c6e979
remove ineffectual variable assignments and simplify code
5 years ago
xxb-at-julichina
386a42dfa2
Update rows.go
5 years ago
xuri
8b20ea1685
Fix #586 , duplicate row with merged cells
5 years ago
xuri
ad883caa0f
Resolve #580 , revert commit 5ca7231ed4
5 years ago
xuri
5ca7231ed4
optimize code and comments: use println errors instead of panic
5 years ago
xuri
5f5ec76740
Fix #551 , handle empty rows in streaming reading
5 years ago
xuri
09485b3f9f
Improve code coverage unit tests
5 years ago
match-meng
7358dca436
Update comments for the xmlNewDecoder ( #542 )
5 years ago
xuri
4249dad8ea
Resolve #539 Merge branch 'v2'
...
# Conflicts:
# rows.go
# sheet.go
5 years ago
Alex Geer
b1b3c0d151
Fix #539 Fixed error opening excel file created in encoding d… ( #540 )
...
* Fixed issue #539 Fixed error opening excel file created in encoding different from UTF-8, added logging of possible errors when decoding XML if the function does not provide exit with an error
* Added test for CharsetReader
* Fixed #discussion_r359397878
Discussion: https://github.com/360EntSecGroup-Skylar/excelize/pull/540#discussion_r359397878
* Fixed go fmt
* go mod tidy and removed unused imports
* The code has been refactored
5 years ago
xuri
5d8365ca17
Fix #529 , handle empty inline rich text
5 years ago
xuri
7965e1231b
Resolve #146 , make the GetRow function read data as streaming. Ref: #382 , #515
5 years ago
ducquangkstn
866fda2300
fix #503 rows next issue
5 years ago
xuri
a34d3b8c86
Compatibility improvement
5 years ago
xuri
9c70d0ac86
Documentation updated, Go 1.10+ required
6 years ago
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
6 years ago
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
6 years ago
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
6 years ago
xuri
9f8623047d
Optimize code, fix golint issues
6 years ago
xuri
821632cf89
Fix #424 , refactor merged cells adjuster
6 years ago
xuri
421f945f51
Fixed #418 , #420 , #421 , init adjust calculation chain support
...
Update testing case
6 years ago
xuri
0660f30cdd
godoc update and typo fixed
6 years ago
Michael
0f9170a03b
Resolve #382 , rewrite prepareSheetXML to scale linearly ( #383 )
...
* Rewrite prepareSheetXML to scale linearly
We don't need to backfill columns into every row for most purposes
Provided makeContiguousColumns for setting styles where we do
need it for a specific region.
Added a benchmark to monitor progress. For 50,000 rows this went
from about 11 seconds to 1 second. The improvements are more
dramatic as the row/column count increases.
* Assigning that row value was redundant
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
xuri
4e7d93a777
Resolve #377 , avoid empty column in GetRows result
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
Veniamin Albaev
7d197c6d89
Fixed PR #356 regression RemoveCol() broken ( #365 )
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
caozhiyi
b974df402a
update go test and function docs
6 years ago
Kimxu
164a3e126a
update README and functions docs ( #351 )
...
* update README and functions docs
* update README and functions docs
6 years ago
Veniamin Albaev
12c1e2481e
Implement consistent row addressing by Excel row number starting with 1 ( #350 )
...
* Implement consistent row addressing by Excel row number starting with 1
1. Added second versions for all row manipulation methods with zero-based row addressing.
2. Fixed methods documentation to explicitly describe which row addressing used in method.
3. Added WARNING to README.md.
4. Cosmetic change: All row test moved to file `rows_test.go`.
* TravisCI: go1.12 added to tests matrix
* BACKWARD INCOMPARTIBLE: Use only Excel numbering logic from 1 row
* README updated
6 years ago
xuri
0072bb7310
resolve the issue corrupted xlsx after deleting formula of cell, reference #346
6 years ago
Veniamin Albaev
725c1a0c40
New feature: File.DuplicateRowTo() duplicate row to specified row position.
...
DuplicateRowTo() is similar to DuplicateRow() but copies specified row not just after specified source row
but to any other specified position below or above source row.
Also I made minor modifications of tests: using filepath.Join() instead of direct unix-way paths strings
to avoid possible tests fails on other OS.
6 years ago
Rafael Barros
dea7ba0ec4
Fixes #195 : Make GetRows return value avoid empty cell
...
* #195 : proposed resolution to the issue
* Make GetRows return value avoid empty cell
* Update test file to fix broken testing.
6 years ago
xuri
fabd9d013f
README updated
6 years ago
Veniamin Albaev
7b7ca99f5d
Duplicate row ( #317 )
...
* go mod tidy applied
* File.DuplicateRow() method added
6 years ago
xuri
90bdd3632f
Fix the issue caused by missing tradition to strict conversion for `sharedStringsReader()`, relate issue #276
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
9e463b4614
- Add error return value for functions: `AddChart()`, `AddComment()`, `AddPicture()`, `AddShape()`, `AddTable()` and `SetConditionalFormat()`
...
- go test has been updated
7 years ago
xuri
eb62256d16
Simplify testing code, add test case for outline functions and update the godoc.
7 years ago
Ilya Kuznetsov
e70618d084
Added functions to set and get outline level for columns and rows.
7 years ago
xuri
d04be7b33d
Merge branch 'master' into lunny/refactor
7 years ago
Ri Xu
3ca180f09c
Merge test cases and use strict error checking.
7 years ago
Lunny Xiao
38ad20efc1
save bytes on memory instead of string
7 years ago
Lunny Xiao
bc451a78de
add iterator method for rows
7 years ago
Ri Xu
9ee57fdb38
Fix typo and adding Chinese version document.
7 years ago
Ri Xu
2b97c3bb46
- Support to read inlineStr type cell value, relate issue #208 , PR #209 ;
...
- go test and godoc has been updated
7 years ago
Ri Xu
a6fc5a721d
- Make row index consistent in function `SetRowHeight` and `GetRowHeight`, fix issue #205 ;
...
- go test and godoc has been updated
7 years ago
Ri Xu
b1b056e0eb
Handle special shared string table file name `xl/SharedStrings.xml`, relate issue #188
7 years ago
Ri Xu
6dc135a992
Fix read columns count wrong in specific xlsx data, relate issue #175
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
8077732dff
Bugfix: read sheet name error, relate issue #137
...
Signed-off-by: Ri Xu <xuri.me@gmail.com>
7 years ago
Ri Xu
9b5b74d480
Performance optimization, use the array index instead of the value in range.
7 years ago
Ri Xu
905be463ed
Improve code readability.
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
6aa59a1af2
- Init insert/remove column/row support. Relate issue #77 and #82 ;
...
- Readme and go test updated
8 years ago
Ri Xu
e05867a033
Function `GetCellValue()` performance improvement by avoid repeating deserialization, relate issue #70 .
8 years ago
Ri Xu
86466654e2
- Unify the index row number index of functions `SetRowHeight()` and `GetRowHeight()` relate issue #68 ;
...
- Unify the return value data type of functions `SetColWidth()` and `GetColWidth()`;
- go test updated
8 years ago
Ri Xu
66e5d1fa80
API changed, use `NewFile()` instead of `CreateFile()` and use `SaveAs()` instead of `WriteTo()`.
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