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. C#
  4. c# Getting Data From Excel

c# Getting Data From Excel

Scheduled Pinned Locked Moved C#
csharptutorialquestion
3 Posts 3 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.
  • M Offline
    M Offline
    Matthew Hastings
    wrote on last edited by
    #1

    Hi All, This is my first post in this forum that is full of excellent information I'm so glad I found it. I have a c# program I'm working on it opens an excell file and displayes the results in a DataGrid at the moment I have it selecting the cell with the code below. //Set excel sheet range exr.SheetRange = "A1:C5"; What I'm trying to make it do is select the data from cells M3, M4, E5, G5, H5, R5 then go to cell G7 and read till the last empty cell to the right of G7 then read down from G7 to the last empty cell. Any one know how to do this?

    S B 2 Replies Last reply
    0
    • M Matthew Hastings

      Hi All, This is my first post in this forum that is full of excellent information I'm so glad I found it. I have a c# program I'm working on it opens an excell file and displayes the results in a DataGrid at the moment I have it selecting the cell with the code below. //Set excel sheet range exr.SheetRange = "A1:C5"; What I'm trying to make it do is select the data from cells M3, M4, E5, G5, H5, R5 then go to cell G7 and read till the last empty cell to the right of G7 then read down from G7 to the last empty cell. Any one know how to do this?

      S Offline
      S Offline
      Syed Shahid Hussain
      wrote on last edited by
      #2

      Hello Not much to say but the idea is: your problem can be solved with 2 loops (on rows and columns) try it and reply if not succeeded. Hope u be happy.

      Syed Shahid Hussain

      1 Reply Last reply
      0
      • M Matthew Hastings

        Hi All, This is my first post in this forum that is full of excellent information I'm so glad I found it. I have a c# program I'm working on it opens an excell file and displayes the results in a DataGrid at the moment I have it selecting the cell with the code below. //Set excel sheet range exr.SheetRange = "A1:C5"; What I'm trying to make it do is select the data from cells M3, M4, E5, G5, H5, R5 then go to cell G7 and read till the last empty cell to the right of G7 then read down from G7 to the last empty cell. Any one know how to do this?

        B Offline
        B Offline
        Bijesh
        wrote on last edited by
        #3

        don't have the code to do the specific thing you want, but this link might have some useful information: http://support.microsoft.com/kb/302096/EN-US/[^]

        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