les imports de datagridview et fichier excel en vb.net
Salut ,
j'utilise vb.net et excel , j'ai ajouter datagridview et j'utilise ces imports :
Code:
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.OleDb |
mais
Code:
Dim connection As New OLEDBConnection
dans cette ligne j'ai un erreur "Error 1 'OLEDBConnection' is ambiguous, imported from the namespaces or types 'System.Data.OleDb, Microsoft.Office.Interop.Excel'.
pouvez-vous me donner les imports exacte pour que je puisse utilisé datagrid et fichier excel en même temps
aidez-moi !! :)