- Upgrade NPOI package to fix merged region handling bug which causes export excel by template with merged region exception
- migrate to slnx, xunit v3
- Remove
net6.0
target, and update build sdk and samples/tests tonet8.0
- Adjust column index enhancements, respect property index by default and support
WithPropertyComparer
- Upgrade dependencies to fix upstream breaking changes
- Enable central package version management
- Fixes #146, fix csv encoding handling issue, thanks @yesyeey for spotting the issue
CsvHelper
enhancements
- Add check before
WriteToFile
- Close workbook when the workbook would not be used anymore
- Fixes #142, great thanks for @hansolehuang's help
- Fix exception when read header that cell format is not string, #140, great thanks for @ensleep's help
- Fix exception when export excel path without directory info, #140, great thanks for @ensleep's help
- Add
HasCellReader
to support more read flexibility
- Add
net6.0
target support - Refactor
CsvHelper
- Add
CsvOptions
forCsvHelper
- Add support for validation, fixes #102
- Add support for
ToEntities
, fixes #113
- Add support for duplicate column name for dataTable
- Fix sheet name not applied bug #127
- The
ExcelHelper.ToDataTable
was extended with two argumentsbool removeEmptyRows = false, int? maxColumns = null
- Fix possible
IndexOutOfRangeException
when loading rows
- Fix
ExcelHelper.ToDataTable
bug when the imported excel column value is not the string value, thanks for @Ninjanaut's contribution
- Fix
ExcelHelper.ToDataTable
bug when the imported excel file first column is empty, thanks for @Ninjanaut's contribution FluentSettings.LoadMappingProfile
enhancement
- add
MappingProfile
support so that we could split mappings into separate mapping profiles
- add
DrawingPatriarch
null check forGetPicturesAndPosition
- add
CellAction
/RowAction
/SheetAction
for more flexible export
- add support for image import/export
- enable nullable reference
- remove
net45
target
- add support for
EntityList
/DataTable
export auto split sheets when needed
- refactor
ExcelSetting
andSheetSetting
- add support for
RowFilter
andCellFilter
(mainly for import) - add support for reading file when file opened by another process
- add support for formula value import
- add
EndRowIndex
forSheetSetting
(zero-based, included) - add FluentAPI
WithDataValidation
for excel setting, if set will ignore invalid data when import excel - remove
CSVHelper
TEntity
new()
constraint
- fix xlsx workbook
AppVersion
property value caused warning
- fix
ExcelHelper.ToDataTable
bug with blank cell, thanks for hokis's feedback
- expose
CsvHelper.GetCsvText
extensions
- fix
CsvHelper.ParseLine
bug with quoted value, thanks for hokis's effort
- remove
return 1
code fix #64 - optimize fluent formatter performance
- add
FluentSettings.For
instead ofExcelHelper.SettingsFor
, fluent settings is not only for excel, but also work with csv
- add
TemplateHelper.ConfigureTemplateOptions
to allow user config templateParamFormat
- add
ExportExcelByTemplate
, fix #33 - update
NpoiRowCollection
- optimize
DataTable
support for csv - export csv as utf8 encoding
- update export generic type constraint, remove
new()
constraint
- add
HasColumnInputFormatter
/HasColumnOutputFormatter
- simply
IExcelConfiguration
SheetConfiguration
- fix inherit property configure bug
- fix empty column skipped bug, fix with
row.Cells.Count
=>row.LastCellNumber
- optimize
AdjustColumnIndex
- allow use
Ignored(false)
to unignore property
- add shadow property support
- add version info when export
*.xlsx
excel
- add support for more format, treat as xlsx
- add
AutoColumnWidthEnabled
setting toSheetSetting
, no autoSizeColumn by default - add
CsvHelper.ToEntityList(byte[] bytes)
/CsvHelper.ToEntityList(Stream stream)
- use xls for default ExcelFormat(better performance)
- try to auto adjust column index when import excel(do not update existing settings)
- add
InputFormatter
/OutputFormatter
- apply column settings for CSV
- remove unused SheetConfiguration
- add
ExcelHelper.LoadExcel()
/ExcelHelper.ToEntityList
override for stream/bytes
- fix possible
NullReferenceException
whenExcelHelper.ToEntityList()
/ToExcelFile()
- fix treat
string.Empty
asnull
bug,SetCellType
afterSetCellValue
so thatnull
=>CellType.Blank
,string.Empty
=>CellType.String
- add support for custom column width
- fix
ToExcelFile
/ImportData
extension not applied configuration bug - add support for specific sheetIndex when export excel
- fix :
CsvHelper.ToDataTable()
and export DataTable to csv (Thanks for Arek's feedback) - add support for no header when export excel(to fix #26 )
- add
HasColumnFormatter<TEntity, TProperty>(Func<TEntity, TProperty, object> columnFormatter)
to support for custom column output for export
- add sourcelink support
- add support for csv escape
- fix csv custom columnIndex bug
- Optimize csv operation for entity list
- Update NPOI package to 2.4.1
- Add support for struct types
- Add default excel settings
- Update NPOI package to 2.4.0, use NPOI for netstandard2.0 also
- Add CsvHelper for import and export csv file, and mapping to entities
- StrongNaming package