ClosedXml 读取Excel 报错 :未将对象引用设置到对象的实例

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

  

上一篇:Excel如何批量根据身份证号码查询出地址


下一篇:OpenFOAM 超算上编译求解器报错:Clock skew detected. Your build may be incomplete