New feature! Upgrade and increase expert visibility of your issues with Priority Questions.
Dim gv As New GridView() Dim DBConnection = New OleDbConnection( _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\ExcelFiles\test.xls;" & _ "Extended Properties=Excel 8.0;") DBConnection.Open() Dim SQLString As String = "SELECT * FROM [test$]" Dim DBCommand = New OleDbCommand(SQLString, DBConnection) Dim DBReader As Data.IDataReader = DBCommand.ExecuteReader() gv.DataSource = DBReader gv.DataBind() DBReader.Close() DBConnection.Close()
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.