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. Web Development
  3. ASP.NET
  4. Small Problem In Reading Excel Sheet

Small Problem In Reading Excel Sheet

Scheduled Pinned Locked Moved ASP.NET
help
1 Posts 1 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.
  • K Offline
    K Offline
    kishore19 hotmail com
    wrote on last edited by
    #1

    Hai Friends, I have one problem withe Excel Sheet, Actually Iam uploading excel sheet , and I am storing the contents of Excel sheet in DATASET and i am reading the data from DATASET While Reading Data from DATASET,Iam unable to read the INTEGER data Even i am reading the data of Text, getting problems with INTEGER data and it is giving error is INVALID CAST ERROR and it is showing the valuse DBNull i have tried to solve it by changing the properties of Excel Sheet CEll,but could not Succeed Iam giving Code what i wrote in aspx.vb Dim TNo As String Dim ASFD As integer For i = 4 To DS.Tables(0).Columns.Count - 1 TNo = Trim(DS.Tables(0).Rows(0).Item(i)) ASFD = DS.Tables(0).Rows(6).Item(i) when i am reading the ASFD,iam getting the INVALID CAST Error

    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