I'm having to pull in data from a spreadsheet, but the header row is causing a lot of problems. My first column is a 6 digit ID but it's a string also, the interop wants those fields to be a Double. How can I make sure everything is just a string as it's passed over?
I'm using range.Cells[i,j].Value2
Loading
VulpesPosted Sep 2, 2011, 2:10 PM
I'd just use:
if (values.GetValue(i,1) == null)
Sam HobbsPosted Sep 2, 2011, 2:09 PM
JasonPosted Sep 2, 2011, 1:10 PM
My last bump in the road seems to be that values.GetValue(i ,1).Equals(null) doesn't catch the null. I keep getting a NullReferenceException.
Sam HobbsPosted Sep 2, 2011, 12:57 PM