This is where I start to read and write fine on a sheet. I am changing a Windows application to an asp site and I see this error. I have added all the links and libraries. I donβt know what I am missing here.
Getting the error as below. Please help me.
Excel.Application excel = new Excel.Application(); excel.Visible = false; // to hide the processing Excel.Workbook wb = excel.Workbooks.Add(); Excel.Worksheet sh = wb.Sheets.Add(); // Error at wb sh.Name = "Links"; for (int i = 1; i < list.Count; i++) { sh.Cells[i.ToString(), "A"].Value2 = list[i]; //Error at .Value2 }
source share