Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
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.!
Posted
Comments
Sergey Alexandrovich Kryukov 14-Nov-14 16:15pm    
Why would you need anyone to have any implementation of anything? First, find out what's null and why, using the debugger.
—SA

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900