无法使用null引用绑定对象 [英] Cant bind object with null reference

查看:80
本文介绍了无法使用null引用绑定对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用microsoft.office.interop.excel从excel表中读取



当excel中的列为空时...我检查!(字符串。 isnotnullorempty(wrkbk(cell))但它始终打破说不能在运行时为null引用绑定。



有人有一个实现读取excel并使用sql db插入microsoft.office.interop.excel?。





请让我知道我真的很感激。!

I am using microsoft.office.interop.excel to read from excel sheet

When a column in excel is empty..i check for !(string.isnotnullorempty(wrkbk(cell)) but it always breaks saying cannot bind at runtime for null reference.

does someone have an implementation for reading excel and inserting to sql db using microsoft.office.interop.excel ?.


Please let me know I would really appreciate it.!

推荐答案

检查出来......

使用Office Interop程序集更快地阅读MS Excel [ ^ ]
Check this out...
Faster MS Excel Reading using Office Interop Assemblies[^]


这篇关于无法使用null引用绑定对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆