my project mvc 4.i upload xls file.this file read excel reader.i want read column value.Below in my code
while (reader.Read())
{
string post = (reader[1].ToString().Trim());
}
{
string post = (reader[1].ToString().Trim());
}
error : Object reference not set to an instance of an object.
Amar GaikwadPosted Jul 17, 2016, 5:46 AM