how to get column from Excel Sheet,if Excel sheet name contain space character i.e.“Person Details”
问题 here i m using ADO.Net for connect to Excel file using specified connectionString that work fine, my only concern is if sheet name has space character than its not return column names form corresponding sheet. my code : if (extension == ".xls") { connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Server.MapPath("~\\ExcelUpload\\Excelsheets\\temp.xls") + ";" + @"Extended Properties=" + "\"Excel 8.0;HDR=YES;\""; } else if (extension == ".xlsx") { connectionString = @