hello friends,
i have a windows project in vb.net, in which i have to connect my project with an excel database i have microsoft office 2007 installed on my lappy..
please help me with the code.
thanks in advance..
aadi_capri 0 Light Poster
Recommended Answers
Jump to PostTry Dim fBrowse As New OpenFileDialog With fBrowse .Filter = "Excel files(*.xls)|*.xls|All files (*.*)|*.*" .FilterIndex = 1 .Title = "Import data from Excel file" End With If fBrowse.ShowDialog() = Windows.Forms.DialogResult.OK Then Dim fname As String fname = fBrowse.FileName Dim MyConnection As System.Data.OleDb.OleDbConnection Dim DtSet As System.Data.DataSet Dim …
Jump to PostIn which column the text is? And can you provide the sample excel file? It should read whaterver is there in excel file.
All 7 Replies
adam_k 239 Master Poster
aadi_capri 0 Light Poster
Pgmer 50 Master Poster Featured Poster
aadi_capri 0 Light Poster
Pgmer 50 Master Poster Featured Poster
adam_k 239 Master Poster
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.