Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question// lecture fichier excel, feuille ABONNES OleDbConnection excelConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+openFileDialog.FileName+";Extended Properties=Excel 8.0;"); OleDbCommand excelCommand = new OleDbCommand("SELECT * FROM [ABONNES$]", excelConnection); OleDbDataAdapter excelDataAdapter = new OleDbDataAdapter(excelCommand); DataSet excelDataSet = new DataSet(); DataRowCollection excelDataRowCollection; // récupération des données de la table excelDataAdapter.Fill(excelDataSet, "ABONNES");