donnytian / Npoi.Mapper

Use this tool to import or export data with Excel file. The tool is a convention based mapper between strong typed object and Excel data via NPOI.
MIT License
601 stars 115 forks source link

只有标题行没有数据的表Take<dynamic>后,Put转存导致标题行丢失,结果为空表 #35

Closed xjfnet closed 2 years ago

xjfnet commented 6 years ago
    var reader = new Mapper(@"D:\111111.xlsx");
    var set = reader.Take<dynamic>().Dump().Select(x => x.Value).ToList();

    var writer = new Mapper();
    writer.Put(set, "Sheet1");
    writer.Save(@"D:\222222.xlsx");

D:\111111.xlsx只有标题行,没有数据 D:\222222.xlsx完全空白,标题行都没有了

donnytian commented 2 years ago

closing this as that confirmed no issue on the latest version.