string excelConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Details.xls;Extended Properties=""Excel 8.0;HDR=YES;""";
string excelConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source="+ FPath +";Extended Properties=""Excel 8.0;HDR=YES;""";
string FPath = "C:\Details.xls";
string FPath = @"C:\Details.xls";
Sir, I am using but not Work --- string _FileName = FileImageC.PostedFile.FileName; //Physical Path Return :C:\Documents and Settings\PP_2\My Documents\Details.xls string excelConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=@_FileName;Extended Properties=""Excel 8.0;HDR=YES;""";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)