ClosedXml 读取Excel 报错 :未将对象引用设置到对象的实例
作者:互联网
/// <summary> /// 读取IWorkBook对象 /// </summary> public void GetWorkbook() { //excel中有错误的格式 会报未将对象引用设置到对象的实例的错误 改为文本后正常 XlWorkbook = new XLWorkbook(CreateOrOpenFullFile, new LoadOptions { EventTracking = XLEventTracking.Disabled, RecalculateAllFormulas = false }); }
标签:读取,错误,对象,Excel,实例,报错,引用,new,ClosedXml 来源: https://www.cnblogs.com/cyj0923/p/15849587.html