' Full path to the data source file Dim file As String = "Top5.csv" ' Create a connection string. Dim ConStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + "C:/gatewaydata/" + ";Extended Properties=""Text;HDR=No;FMT=Delimited""" Dim myConnection As New OleDbConnection(ConStr) ' Create a database command on the connection using query Dim mySelectQuery As String = "Select * from " + file Dim myCommand As New OleDbCommand(mySelectQuery, myConnection) ' Open the connection and create the reader myCommand.Connection.Open() Dim myReader As OleDbDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection) ' databind the reader to the chart using the DataBindXY method Chart1.Series(0).Points.DataBindXY(myReader, 1, myReader, 2) Chart1.Series(1).Points.DataBindXY(myReader, 1, myReader, 3) ' Close connection and data reader myReader.Close() myConnection.Close()
|Learning Processes involved in building a asp.net mvc (C#) application that uses an Oracle database||8||75|
|Do you know how, using C#, to increase the size of 2 merged images that are displayed vertically (one image on top and one image on the bottom, of the scren) in 1 file?||1||28|
|What .NET URL re-routing tool did I use?||2||38|
|I need help displaying images in a ListBox control in my WPF application with VB.Net code-behind.||1||23|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
21 Experts available now in Live!