Commit Graph

460 Commits

Author SHA1 Message Date
Wei
6ae635bf26 [New] SaveAsByTemplate default ignore template missing parameter key exception, OpenXmlConfiguration.IgnoreTemplateParameterMissing can control it. #I4WXFB 2022-03-09 22:48:15 +08:00
Wei Lin
15e92b3b25
Merge pull request #335 from Weilence/master
Support strict open xml
2022-03-09 08:09:35 +08:00
罗威
912a16b911 支持Strict Open Xml 2022-03-08 20:32:05 +08:00
罗威
f0bce37e82 支持Strict Open Xml 2022-03-08 18:24:29 +08:00
罗威
25f5811888 支持Strict Open Xml 2022-03-08 17:18:58 +08:00
罗威
a7a18b0040 支持Strict Open Xml 2022-03-08 17:18:04 +08:00
Wei Lin
1f24c671cb
Merge pull request #333 from 0xced/use-configured-culture
Use the configured culture when writing cell values
2022-03-08 08:51:17 +08:00
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