Importer Un Fichier Excel Dans Une Application
Importer Un Fichier Excel Dans Une Application
connexion.Open()
'On récupère le schéma de la base (tables)
Dim dt As DataTable = connexion.GetOleDbSchemaTable(OleDbSchemaGuid.Tables,
Nothing)
If IsNothing(dt) Then
Exit Function
End If
adapter.Fill(topics)
With DataGrid1
.DataSource = topics.Tables(0)
End With
End Function
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
-1-