Hi
I have below code . I want Data to be read from second row.
void Uploadin()
{
OleDbConnection connection = new OleDbConnection();
try
{
string path = Server.MapPath("~") + "/UpLoad/Data.xls";
string excelConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + ";Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\";";
connection.ConnectionString = excelConnectionString;
OleDbCommand command = new OleDbCommand("select * from [Data$]", connection);
connection.Open();
DbDataReader dr = command.ExecuteReader();
if (dr.HasRows)
{
string m_DocNo = dr[0].ToString();
string m_Name = dr[1].ToString();
}Thanks