Reading Data From Excel SpreadSheet - Cannot perform runtime binding on a null reference
问题 I have the code below to read data from an excel file, the problem I am running into is that when I try to read the range data, I get an exception "Cannot perform runtime binding on a null reference" on this line if (Int32.TryParse(xlRange.Cells[1, 4].Value2.ToString(), out value)) What I want to know is how I do access the information in the range properly please. Thanks in advance void ReadFromExcelToGrid2(String fileNameString) { try { Microsoft.Office.Interop.Excel.Application xlApp = new