/// <summary> /// 读取IWorkBook对象 /// </summary> public void GetWorkbook() { //excel中有错误的格式 会报未将对象引用设置到对象的实例的错误 改为文本后正常 XlWorkbook = new XLWorkbook(CreateOrOpenFullFile, new LoadOptions { EventTracking = XLEventTracking.Disabled, RecalculateAllFormulas = false }); }