strConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + "D:\\SubjectMaster.xls" + "; Jet OLEDB:Engine Type=5;" + "Extended Properties=\"Excel 8.0;HDR=YES;IMEX=1\";"; (OR) strConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + "+textBox1.Text+" + "; Jet OLEDB:Engine Type=5;" +"Extended Properties=\"Excel 8.0;HDR=YES;IMEX=1\";";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)