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. Strange Problem

Strange Problem

Scheduled Pinned Locked Moved C#
help
4 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.
  • S Offline
    S Offline
    sam
    wrote on last edited by
    #1

    Hi, I am using OLEDB for reading excel data.Although it's working fine but unable to read values of some cell e.g. i have data in A1,A2,A3 cells. my program is successfully reading data of cell A1 but unable to read data from cells A2,A3. i have checked all but unable to find the cause.when i applied watch on table. Its showing System.DBNull in cell A2 and A3. please help me ASAP

    C A 2 Replies Last reply
    0
    • S sam

      Hi, I am using OLEDB for reading excel data.Although it's working fine but unable to read values of some cell e.g. i have data in A1,A2,A3 cells. my program is successfully reading data of cell A1 but unable to read data from cells A2,A3. i have checked all but unable to find the cause.when i applied watch on table. Its showing System.DBNull in cell A2 and A3. please help me ASAP

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Do you have data in any other cells ? Perhaps you're not reading the cells you thin kyou are. No-one can offer more concrete help without seeing your code.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      S 1 Reply Last reply
      0
      • C Christian Graus

        Do you have data in any other cells ? Perhaps you're not reading the cells you thin kyou are. No-one can offer more concrete help without seeing your code.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        S Offline
        S Offline
        sam
        wrote on last edited by
        #3

        data is present in all cells. i think problem in the column data type

        1 Reply Last reply
        0
        • S sam

          Hi, I am using OLEDB for reading excel data.Although it's working fine but unable to read values of some cell e.g. i have data in A1,A2,A3 cells. my program is successfully reading data of cell A1 but unable to read data from cells A2,A3. i have checked all but unable to find the cause.when i applied watch on table. Its showing System.DBNull in cell A2 and A3. please help me ASAP

          A Offline
          A Offline
          alex almeida
          wrote on last edited by
          #4

          How do u read the data from cells? Does the app always read first cell?

          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