NPOI.Extension icon indicating copy to clipboard operation
NPOI.Extension copied to clipboard

建议导入Excel增加行过滤功能

Open y976362357 opened this issue 4 years ago • 1 comments

背景 在导入excel时,需要动态的决定那些行是真实的有效行数据

例如:当第二列没填值时,这一行为无效数据,输出结果中不应该包含这一行数据

建议

增加参数Func<IRow, bool> customerRowsFilter = null),在处理每行数据时先校验传入的委托,决定是否要加入到输出结果中 public static IEnumerable<T> Load<T>(string excelFile, int startRow = 1, int sheetIndex = 0, ValueConverter valueConverter = null, Func<IRow, bool> customerRowsFilter = null) where T : class, new()

y976362357 avatar Aug 03 '20 01:08 y976362357

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.89. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Aug 03 '20 01:08 issue-label-bot[bot]