用EPPlus 读取excel,代码出错, the given key is not present in the dictionary

                        using (ExcelPackage ep = new ExcelPackage(new FileInfo(path)))
                        {
                            ExcelWorksheet ws = ep.Workbook.Worksheets[0]; //第1张Sheet

这个用EPPlus 读取excel,代码出错, the given key is not present in the dictionary

原来是因为用wps编辑过的原因. 用Excel重新保存一次就可以了.

原文地址:https://www.cnblogs.com/zitjubiz/p/10757478.html