Commit Graph

453 Commits

Author SHA1 Message Date
Cédric Luthi
1716567a5f Use the configured culture when writing cell values
This makes `TestIssue312()` pass on a computer where the current culture is a French culture. Assert.Equal("12,345.68", rows[1].A) would fail because the value would be serialized as `12 345,68` instead of `12,345.68`.

Also simplify the implementation of the Excel and CSV writers by getting rid of both `ExcelFormatToStringMethod` and `ExcelcultureToStringMethod` which are replaced by testing if the value implements the `IFormattable` interface.
2022-03-07 16:46:10 +01:00
Wei
e5cc813ab0 [Bug] SaveAs CSV when value is DataTable, if Key contains " then column name will not show "。 #I4WDA9 2022-03-04 16:39:13 +08:00
Wei
14586c739c [Bug] Fix when CultureInfo like Czech will get invalid output with decimal numbers #331 2022-03-03 11:42:46 +08:00
Wei
a222e2a4f8 [New] Support System.ComponentModel.DisplayName's [DisplayName] as title [#I4TXGT] 2022-02-16 16:20:42 +08:00
Wei
9b6c2c3d0d [Bug] Fix extra GetDataReader method 2022-02-14 16:37:35 +08:00
Wei
c46a03dfc7 [New] Support GetReader method #328 #290 2022-02-14 16:22:59 +08:00
Wei
d016c2c524 [New] New efficiency byte array Converter #327 2022-02-12 16:25:30 +08:00
Wei
4e076289d6 [Doc] update logo 2022-02-12 16:15:53 +08:00
Wei
3deedcb2e0 - [Breaking Change] Remove Byte Array to base64 Converter
- [Breaking Change] Replace `ConvertByteArrayToBase64String` by `EnableConvertByteArray`
2022-02-12 16:05:05 +08:00
Wei
f2f5e6d497 [Bug] SaveAs file error (Excel cell max length 32,767 characters) #327 2022-02-12 15:51:57 +08:00
Wei
5db234d019 - [New] SaveAs support to custom CultureInfo #316
- [New] Query support to custom CultureInfo #316
2022-02-12 09:51:08 +08:00
Wei
ebc05c508d [New] Query support to custom CultureInfo 2022-02-10 17:13:11 +08:00
Wei
e4b9a99e2e - [New] SaveAs CSV support to custom CultureInfo
- [Doc] Update logo icon
2022-02-08 10:53:47 +08:00
Wei
57751a2257 [Bug] Fix SaveAs multiple sheet value error "Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded." #325 2022-02-07 10:29:47 +08:00
Wei
67eddb9239 Doc : add donate link 2022-01-28 05:32:36 +08:00
Wei
692198ed93 New : Remove License Code Message 2022-01-28 04:52:39 +08:00
Wei
6007e7897b Doc : web link change to https://miniexcel.github.io 2022-01-28 01:12:52 +08:00
Wei
62559ca19e Doc : Change logo
New : License code message supports Chinese
2022-01-28 00:21:43 +08:00
Wei
3f4de39996
Update FUNDING.yml 2022-01-24 22:50:06 +08:00
Wei
49010056df
Update FUNDING.yml 2022-01-24 11:30:37 +08:00
Wei
619af95068
Create codeql-analysis.yml 2022-01-24 11:28:06 +08:00
Wei
af2331670a New : MiniExcel.Code 2022-01-24 10:56:49 +08:00
Wei
57bc83a5f4 0.21.1 2022-01-24 00:49:28 +08:00
Wei
40e23f4e2a New : License Code 2022-01-24 00:48:12 +08:00
Wei
4cc4289a25
Update FUNDING.yml 2022-01-23 20:24:19 +08:00
Wei
9fbc3157ca
Update FUNDING.yml 2022-01-23 20:22:20 +08:00
Wei
0690a6094b
Create FUNDING.yml 2022-01-23 20:20:28 +08:00
Wei
991edb6513 Doc : fix wrong version 2022-01-22 17:07:11 +08:00
Wei
a3693db188 [New] ExcelFormat support DateTimeOffset/Decimal/double etc. type format #I49RZH #312 #305 2022-01-22 17:02:16 +08:00
Wei
09ec6fd124 - [New] Query support ExcelInvalidCastException to store column, row, value data #309
- [Opt] Query code refactoring
2022-01-22 11:32:43 +08:00
Wei
0c179c87a1 Code refactoring 2022-01-22 08:27:25 +08:00
Wei
1416af71c0 - [New] Support byte file import/export
- [New] SaveAs support to convert byte[] value to base64 string
- [New] Query support to convert base64 value to byte[]
- [New] OpenXmlConfiguration add `ConvertByteArrayToBase64String` to turn on/off base64 convertor
2022-01-21 17:21:14 +08:00
Wei
0ee399d4f0 - New : SaveAs support convert bytes to base64 to store data #318
- Fix : File convert to base64 value out of cell
#319
2022-01-21 15:12:48 +08:00
Wei
b88428e765 0.20.0 2022-01-21 12:07:17 +08:00
Wei
45e4a57c20 [New] SaveAs support image #304 2022-01-21 12:01:22 +08:00
Wei
fb30be7bd3 Fix : image can read from file path 2022-01-21 11:17:01 +08:00
Wei
14ee731b64 Fix : write to zip, the image format error 2022-01-20 17:22:04 +08:00
Wei
1069afd726 Fix : unable to open /xl/workbook.xml 2022-01-20 15:21:28 +08:00
Wei
33e977dde1 New : SaveAs support image 2022-01-20 14:48:05 +08:00
Wei
1efc7dca4b V0.20.0 Code Refactoring 2022-01-19 16:10:19 +08:00
Wei
4e3cacb33f Merge branch 'master' of https://github.com/shps951023/MiniExcel
# Conflicts:
#	src/MiniExcel/ExcelNumberFormat/Color.cs
#	src/MiniExcel/ExcelNumberFormat/CompatibleConvert.cs
#	src/MiniExcel/ExcelNumberFormat/Condition.cs
#	src/MiniExcel/ExcelNumberFormat/DecimalSection.cs
#	src/MiniExcel/ExcelNumberFormat/Evaluator.cs
#	src/MiniExcel/ExcelNumberFormat/ExcelDateTime.cs
#	src/MiniExcel/ExcelNumberFormat/ExponentialSection.cs
#	src/MiniExcel/ExcelNumberFormat/Formatter.cs
#	src/MiniExcel/ExcelNumberFormat/FractionSection.cs
#	src/MiniExcel/ExcelNumberFormat/NumberFormat.cs
#	src/MiniExcel/ExcelNumberFormat/Parser.cs
#	src/MiniExcel/ExcelNumberFormat/Section.cs
#	src/MiniExcel/ExcelNumberFormat/SectionType.cs
#	src/MiniExcel/ExcelNumberFormat/Token.cs
#	src/MiniExcel/ExcelNumberFormat/Tokenizer.cs
2022-01-19 11:16:36 +08:00
Wei
3ad53fcc30 Code Refacturing : ExcelWriter printHeader 2022-01-15 20:03:39 +08:00
Wei
e9ec41262e Code refactoring : SaveAs configulation 2022-01-03 02:39:00 +08:00
Wei
ccdcbb3d10 - Minify DefualtOpenXml
- DefualtOpenXml xml set Readonly
2022-01-03 00:11:50 +08:00
Wei
ecf4929df4 Doc : How SaveAs(path,value) to replace exists file and without throwing "The file ...xlsx already exists error" 2022-01-02 16:55:36 +08:00
Wei
ea4c8d1125 Merge MiniExcelLibs.ExcelNumberFormat 2022-01-01 14:40:00 +08:00
Wei
9e7abf893e Fix Excelnumberformat 1.1.0 valid date expired (Valid from: 2018-04-10 08:00:00 to 2021-04-14 20:00:00) [link](https://github.com/andersnm/ExcelNumberFormat/issues/34) 2021-12-31 10:00:41 +08:00
Wei
daf5fa5b78 ExcelNumberFormat 1.1.1 2021-12-31 00:14:28 +08:00
Wei
e90f6af360 Logo Compression and remove excelnumberformat expired sign 2021-12-30 21:44:28 +08:00
Wei
6d257b8aea 0.19.2 2021-12-29 00:50:31 +08:00