xuri
1ec0207fb5
Fix code security issue
4 years ago
xuri
90d200a10b
Make the functions `SetSheetRow`, `New Style` and `SetCellStyle` concurrency safety
4 years ago
xuri
544ef18a8c
- Support concurrency iterate rows and columns
...
- Rename exported field `File.XLSX` to `File.Pkg`
- Exported error message
4 years ago
ice
c8c62c2d2a
* This closes #841 , fix incorrect build number format in PR #839
4 years ago
ice
37342f6d81
"15" is the correct 24 hours time format in go ( #839 )
...
* "15" is the correct 24 hours time format in go
* fix number format convert issue and remove the `dateTimeFormatsCache`
4 years ago
xuri
7e429c5b46
Fixe issue generated file corrupted caused by incorrect default XML namespace attributes
4 years ago
xuri
f5a20fa03f
Fixed #823 , 12/24 hours time format parsing error
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
e1abdb0e5a
This closes #809 , and add new fn: HARMEAN
4 years ago
xuri
36b7990d6b
lint issue fixed and new formula function: ATAN, AVERAGE, AVERAGEA, CONCAT, CONCATENATE, COUNT, COUNTBLANK, MAX
4 years ago
xuri
1f329e8f96
This closes #774 , closes #775 and closes #776
...
- correct adjust calculation chain in duplicate rows
- correct adjust defined name in the workbook when delete worksheet
- use absolute reference in the auto filters defined name to make it compatible with OpenOffice
- API `CoordinatesToCellName` have a new optional param to specify if using an absolute reference format
- Fix cyclomatic complexity issue of internal function `newFills` and `parseToken`
4 years ago
Eagle Xiang
219add2f0e
value fields xlsxPatternFill.FgColor & xlsxPatternFill.BgColor cause … ( #770 )
...
* value fields xlsxPatternFill.FgColor & xlsxPatternFill.BgColor cause ineffective omitempty tags
* remove useless omitempty tag on xlsxPatternFill.FgColor and xlsxPatternFill.BgColor
4 years ago
xuri
2514bb16c6
Fix #724 , standardize variable naming and update unit tests
4 years ago
xuri
9d470bb38f
Update conversion between integer types and unit tests
4 years ago
xuri
d1926675f8
- Resolve #627 , improve multi-series line chart compatibility with KingSoft WPS
...
- Avoid to create duplicate style
- Update unit test for the auto filter
- Init code scanning alerts
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
WXDYGR
1c2e7c5c68
Update styles.go
...
修复获取百分比值时,GetCellValue返回值不准确的问题
5 years ago
xuri
c922c32fb7
support parse and generate XML element namespace dynamic, fix #651
5 years ago
xuri
15fd56853f
Update docs and typo fixed
5 years ago
xuri
1aeb818235
avoid creating duplicate number format
5 years ago
xuri
a546427fd9
Resolve #643 , avoid creating duplicate style
5 years ago
xuri
882abb8098
- formula engine: reduce cyclomatic complexity
...
- styles: allow empty and default cell formats, #628
5 years ago
echarlus
a2e1da8d9d
Fix for issue #608 ( #609 )
5 years ago
xuri
66d0272f6a
Resolve #172 , init rich text support
5 years ago
xuri
3f89c6e979
remove ineffectual variable assignments and simplify code
5 years ago
xuri
6afc468a02
Resolve #451 , support create chart sheet
5 years ago
xuri
cea3d806ec
Resolve #200 , ignore empty conditional format style
5 years ago
xuri
9e2318cefa
Resolve #470 , export Style structs to allow create the style for cells by given JSON or structure
5 years ago
xuri
1e3c85024d
Resolve #571 , init remove conditional format support
5 years ago
xuri
ad883caa0f
Resolve #580 , revert commit 5ca7231ed4
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
xuri
4e4a5b9b3e
Improve compatibility, fix workbook's rels ID calc error
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
75d66a03f3
Fix #482 , font strike style support
5 years ago
Vsevolod Balashov
1fc4bc52fb
Fix #386 regression test added ( #440 )
...
* #386 regression test added
* closes #386 string to bigint on GOARCH=386
5 years ago
xuri
407fb55c20
Update the Godoc
5 years ago
xuri
9c70d0ac86
Documentation updated, Go 1.10+ required
6 years ago
xuri
cbe919fdf6
New feature: sparkline supported
6 years ago
xuri
dc8210d4a7
Update GoDoc and typo fixed
6 years ago
xuri
e124f6000a
Fix #425 , handle empty font style format
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
3997dee1f5
Fix #411 , change font size to float type
6 years ago
Harris
b1c9884f6d
Add the ability to change the default font
...
Closes #390
6 years ago
xuri
f91f548614
Resolve #404 , get sheet map by target rels.
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
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
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
Michael W. Mitton
5dd00b9a00
Do not create a blank fill if no fill is specified in the style format
6 years ago
xuri
fabd9d013f
README updated
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
Alex Whitney
db7a605cf8
Use min/mid/max value for 2 and 3 color scale conditional formatting
7 years ago
xuri
79dfe1c307
GoDoc updated.
7 years ago
xuri
d6468fc114
- Initialize theme support;
...
- RGBA, HSL color convert has been added;
- go test updated
7 years ago
xuri
9cb0e9308b
- Update Travis CI to include GOARCH=386 tests, relate issue #239 and #244 ;
...
- Fix doc typo
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
e8961f0aff
- Bugfix: set font family not works, relate issue #222 ;
...
- Remove useless function `replaceWorkSheetsRelationshipsNameSpace()`;
- Make test cases use strict error checking
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
9ee57fdb38
Fix typo and adding Chinese version document.
7 years ago
Ri Xu
ecc3adf22a
- Add protection properties associated with the cell support, relate issue #191 ;
...
- godoc and go test has been updated
7 years ago
Ri Xu
638bd44dd5
- gofmted with -s;
...
- Fix ineffectual assignments in Go code;
- Godoc has been updated
7 years ago
Martin Sandve Alnæs
e556c25047
Avoid looping over unused rows and columns in SetCellStyle.
...
The recent improvement to SetCellStyle still loops
over all the rows before the area, moving the area checks
into the loop is more concise and faster.
Since the loop now covers the correct area by construction,
the inner loop check checkCellInArea is no longer needed.
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
Ri Xu
76366fc1d9
Travis CI config updated and typo fixed.
7 years ago
Ri Xu
07a4140098
- 24 hour time format supported, relate issue #163 ;
...
- godoc and go test updated
7 years ago
Ri Xu
905be463ed
Improve code readability.
7 years ago
Ri Xu
e820388d70
Handle coordinate parse exception, relate issue #122 .
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
77af25295e
- Conditional format with formula support, relate issue #75 ;
...
- go test and readme update
8 years ago
Ri Xu
845e339755
Document updated.
8 years ago
Ri Xu
67636039f6
- Init conditional format support, relate issue #75 ;
...
- go test and godoc updated
8 years ago
Ri Xu
5cf3725f02
Add missing element `xfId` of the styles to fix issue #93 .
8 years ago
Ri Xu
961996a813
- Fix `completeCol()` make extra rows, relate issue #87 ;
...
- godoc updated
8 years ago
Ri Xu
4a74951e81
- Support set custom number format, relate issue #86 ;
...
- go test and godoc updated
8 years ago
Ri Xu
8493fea373
- Add number format code with unicode values, relate issue #86 ;
...
- godoc updated
8 years ago
Ri Xu
4f942255e4
- Fix missing element in worksheet, workbook and styles. Related issue #81 ;
...
- Format code and update readme
8 years ago
Ri Xu
4b7d21bb63
Currency format code added.
8 years ago
Ri Xu
101abe8e98
Add currency format code and go test updated.
8 years ago
Ri Xu
60fa5a5be1
- Display negative numbers by applying a red color supported;
...
- go test updated
8 years ago
Ri Xu
bc31e545c8
- Currency format supported, relate issue #80 ;
...
- go test and godoc updated
8 years ago
Ri Xu
654a676d93
- New function `NewStyle()` added and function `SetCellStyle()` has been exported, relate issue #72 ;
...
- go test and go doc updated
8 years ago
Ri Xu
e05867a033
Function `GetCellValue()` performance improvement by avoid repeating deserialization, relate issue #70 .
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
efff54ccde
- Fixed coordinate parse error in function `SetCellStyle()`, relate issue #60 ;
...
- Simplified code
8 years ago
Ri Xu
8fbab47444
- Formatted cell data support, fix issue #48 ;
...
- Function `SetCellValue()` support `time.Time` data type parameter, relate issue #49 ;
- go doc and go test updated
8 years ago
Ri Xu
266d2c36e5
- Font bold, italic and underline style support. Relate issue #45 ;
...
- Function `GetRows()` doc updated, relate issue #43 ;
- go test and embed template updated
8 years ago
Ri Xu
6e287839ec
- Set number format for a cell support;
...
- go test updated
8 years ago
Ri Xu
7ceb4f21ad
Godoc updated.
8 years ago