summaryrefslogtreecommitdiff
path: root/cell.go
Commit message (Collapse)AuthorAge
* Resolve #172, init rich text supportxuri2020-04-06
|
* Improve code coverage unit testsxuri2019-12-29
|
* Stream to Excel table (#530)Cameron Howey2019-12-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support all datatypes for StreamWriter * Support setting styles with StreamWriter **NOTE:** This is a breaking change. Values are now explicitly passed as a []interface{} for simplicity. We also let styles to be set at the same time. * Create function to write stream into a table * Write rows directly to buffer Avoiding the xml.Encoder makes the streamer faster and use less memory. Using the included benchmark, the results went from: > BenchmarkStreamWriter-4 514 2576155 ns/op 454918 B/op 6592 allocs/op down to: > BenchmarkStreamWriter-4 1614 777480 ns/op 147608 B/op 5570 allocs/op * Use AddTable instead of SetTable This requires reading the cells after they have been written, which requires additional structure for the temp file. As a bonus, we now efficiently allocate only one buffer when reading the file back into memory, using the same approach as ioutil.ReadFile. * Use an exported Cell type to handle inline styles for StreamWriter
* Fix #538, added setting a major unit and tick label skip support for the chartxuri2019-12-25
|
* Improve compatibility, fix workbook's rels ID calc errorxuri2019-12-23
|
* Fix #533, add support overlapped mergecellsxuri2019-12-14
|
* Optimize code of Getting/Setting Page Marginsxuri2019-10-17
|
* solve ending space missingheiy2019-10-10
|
* Allow access to more formula attributes in SetCellFormula (#484)Christian Fiedler2019-09-22
| | | | | | | | | | | | | | | | | | * 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.
* Combine functions:xuri2019-09-16
| | | | | | workBookRelsWriter, drawingRelsWriter into relsWriter; drawingRelsReader, workbookRelsReader, workSheetRelsReader into relsReader; addDrawingRelationships, addSheetRelationships into addRels
* add missing error check in SetSheetRow()mqy2019-08-19
|
* SetCellValue: use fmt.Sprint(v) instead of fmt.Sprintf("%v", v)Olivier Mengué2019-08-13
| | | | | | | Because that does the same thing, but without having to parse a format string. Signed-off-by: Olivier Mengué <dolmen@cpan.org>
* Documentation updated, Go 1.10+ requiredxuri2019-08-11
|
* Fix #424, refactor merged cells adjusterxuri2019-06-12
|
* Add a check for maximum limit hyperlinks in a worksheetxuri2019-04-21
| | | | typo fixed
* godoc update and typo fixedxuri2019-04-20
|
* add unit tests to functionsxuri2019-04-16
|
* Resolve #369,#370xuri2019-04-15
| | | | | | | | | | | | | | | | | | add error return value exported functions: GetMergeCells ProtectSheet UnprotectSheet UpdateLinkedValue GetMergeCells SetSheetVisible inner functions: workSheetReader copySheet
* Check max length for SetCellStr and fix coordinate issue for MergeCellxuri2019-04-14
|
* Fix out of range panic when removing formula.Aplulu2019-04-09
| | | | Fix file corruption issue when deleting a sheet containing a formula.
* refactor: handler error instead of panic,xuri2019-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use bitSize for float32 type numbers conversion, relate PR #361xuri2019-03-21
|
* SetCellFloat for floats with specific precision (#361)Michael2019-03-21
| | | | | | This allows the user to set a floating point value into a cell with a specific number of places after the decimal. Closes #357
* Huge refactorig for consistent col/row numbering (#356)Veniamin Albaev2019-03-20
| | | | | | | | | | | | | | | | | | | * 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
* resolve the issue corrupted xlsx after deleting formula of cell, reference #346xuri2019-02-22
|
* README updatedxuri2019-01-01
|
* fix issue #290peiqi2018-11-08
|
* Comments style changed.xuri2018-09-14
|
* Comments style changed.xuri2018-09-14
|
* Comments style changed.xuri2018-09-14
|
* Fix golint errors under confidence 0.1xuri2018-09-12
|
* Fixes #256 and format document.xuri2018-08-06
|
* - Initialize shared formula types support, relate issue #227;xuri2018-05-26
| | | | - go test and godoc has been updated
* - Fix `checkCellInArea()` index out of range when merged cell ref is single ↵Ri Xu2018-04-08
| | | | | | | coordinate, relate issue #206; - go test updated; - Repository icon for SourceTree has been added
* - New function `SetSheetRow()` has been added for support write whole line ↵Ri Xu2018-03-12
| | | | | | | at once, relate issue #96 and #194; - go test and godoc updated; - Note that this function performance has not been tested
* xlsx.SetCellValue() now supports bool valuedvelderp2018-01-25
|
* make SetCellStyle quicker by skipping conversions in checkCellInArea, and ↵mbresson2018-01-19
| | | | | | skipping area checks when we are sure the cell can't be before or past the current row/col Signed-off-by: Matthieu Bresson
* - Function `SetCellValue()` time.Duration support added, relate issue #176;Ri Xu2018-01-05
| | | | - go test updated
* Rename import path to github.com/360EntSecGroup-Skylar/excelizeJinzhu2017-11-16
|
* - Bugfix: use sheet name in func `AddPicture`, relate issue #142;Ri Xu2017-10-31
| | | | - godoc updated
* - Add unsigned integer data type support, related issue #136;Ri Xu2017-10-18
| | | | | | - go test and godoc updated Signed-off-by: Ri Xu <xuri.me@gmail.com>
* Performance optimization, use the array index instead of the value in range.Ri Xu2017-10-16
|
* Improve code readability.Ri Xu2017-09-30
|
* Handle coordinate parse exception, relate issue #122.Ri Xu2017-09-19
|
* godoc updated.Ri Xu2017-09-13
|
* - API changed, use worksheet name instead of "sheet" + index, related issue ↵Ri Xu2017-09-13
| | | | | | #25, #43, #47, #51, #89, #101, #116 and #120. - go test updated
* Golang 1.9 compatible, fix issue #111Ri Xu2017-09-01
|
* - New function `GetCellHyperLink()` added, relate issue #98;Ri Xu2017-08-08
| | | | - go test added
* Fix round-off error in representation of date and time valuesTakayuki Usui2017-07-31
|
* Optimize code, go test and godoc updated.Ri Xu2017-07-30
|