Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Need help

Need help

Scheduled Pinned Locked Moved Visual Basic
helpcsharpdata-structuresxml
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nguyen Dinh Quy
    wrote on last edited by
    #1

    I'm supposed to do a project using only XML, Microsoft Excel and Vb.Net. My problem here is that I'm supposed to plot a graph out with values extracted from an Excel file. Are there any ways to plot the graph without considering the size restrictions in Vb.Net (the size of the graph might be big), and how do we extract the values from the Excel file?

    L 1 Reply Last reply
    0
    • N Nguyen Dinh Quy

      I'm supposed to do a project using only XML, Microsoft Excel and Vb.Net. My problem here is that I'm supposed to plot a graph out with values extracted from an Excel file. Are there any ways to plot the graph without considering the size restrictions in Vb.Net (the size of the graph might be big), and how do we extract the values from the Excel file?

      L Offline
      L Offline
      lata07mahi
      wrote on last edited by
      #2

      You can extract the values from the excel file using following code: Private ds As DataSet Private myCommand As OleDbDataAdapter Private myConnection As OleDbConnection Private Sub FillDataSet() myConnection = New OleDbConnection( _ "provider=Microsoft.Jet.OLEDB.4.0; " & _ "data source=E:\EmbedBday\Bday.xls; " & _ "Extended Properties=Excel 8.0;") If Not myConnection Is Nothing Then myCommand = New OleDbDataAdapter( _ "select * from [sheet1$A1:A35]", myConnection) If Not myCommand Is Nothing Then ds = New DataSet myCommand.Fill(ds) myConnection.Close() End If End If DataGrid1.DataSource = ds End Sub where "Extended Properties" refers to the MSExcel version on your system which is Excel 8.0 for version higher than Excel 97(inclusive). Lata Agrawal

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups