Salut ,
j'utilise vb.net et excel , j'ai ajouter datagridview et j'utilise ces imports :
mais
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 Imports Excel = Microsoft.Office.Interop.Excel Imports Microsoft.Office.Interop.Excel Imports Microsoft.Office.Interop Imports System.Runtime.InteropServices Imports System.Drawing Imports Microsoft.Office.Interop.Excel.XlRangeAutoFormat Imports System.Data.OleDbdans cette ligne j'ai un erreur "Error 1 'OLEDBConnection' is ambiguous, imported from the namespaces or types 'System.Data.OleDb, Microsoft.Office.Interop.Excel'.
Code : Sélectionner tout - Visualiser dans une fenêtre à part Dim connection As New OLEDBConnection
pouvez-vous me donner les imports exacte pour que je puisse utilisé datagrid et fichier excel en même temps
aidez-moi !!![]()
Partager