dotnetcore / dotnetcore/Magicodes.IE
多个数据源按Sheet拆分导出无法导出多个List<ExpandoObject>
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 495
- PR merge metrics
- No merged PRs in 30d
Description
由于需要导出多个列,我这边参照这个文档想要实现**多个数据源按Sheet拆分导出**

但是发现像这样传入多个List对象是会报错的,传一个List是支持的

然后查看源码,发现第一次IsExpandoObjectType会被识别为true,第二次识别为false

没怎么仔细看代码,但是简单修改了一下这样是可正常执行的,也能满足我需求了
ExportHelper修改:

ExcelExporter修改:

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.