Hi I am getting index out of range exception....in below line..
rng.set_Item(16, 1, odr60["phase_name"].ToString().Replace("\r", "").Replace("\\n", "\n").Replace("\\r", ""));
below is the code...Please help me to resolve this issue
strNonWeighedTotalTab = Session["TotalNonWeightedExcel"].ToString();
ocmd = new OracleCommand();
ocmd.Connection = DBConn;
ocmd.CommandText = strNonWeighedTotalTab;
OracleDataReader odr60 = ocmd.ExecuteReader();
int cntt2 = 0;
while (odr60.Read())
{
cntt2 = cntt2 + 1;
rng.set_Item(16, 1, odr60["phase_name"].ToString().Replace("\r", "").Replace("\\n", "\n").Replace("\\r", ""));
rng.set_Item(16, 2, odr60["req_analysis_high"].ToString().Replace("\r", "").Replace("\\n", "\n").Replace("\\r", ""));
rng.set_Item(16, 3, odr60["req_analysis_medium"].ToString().Replace("\r", "").Replace("\\n", "\n").Replace("\\r", ""));
}