Bonjour,
bonsoir,
j'ai un projet gestion budgétaire
mon prof a demandé de réaliser ce programme avec c#(pour l'interface)et excel(pour base de donnee)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
string pathCon = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source =testfinal.xlsx;Extended Properties=\"Excel 12.0; HDR = YES; IMEX=1\";";
			OleDbConnection conn = new OleDbConnection(pathCon);
			conn.Open();
			Console.WriteLine("Etat de la connexion : " + conn.State);
 
			OleDbCommand oCommand = new OleDbCommand();
			oCommand.Connection = conn;
			oCommand.CommandText = "insert  into ges (Nom,Prenom)"+" values ('sbaibi','nossair')";
			oCommand.ExecuteNonQuery();
			conn.Close();
quant je veux executer cette requete il me lance cette execption:
Nom : ex.PNG
Affichages : 487
Taille : 8,0 Ko
svp le solution
merci d'avance!!