Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hi everyone, I'm slightly baffled at this little problem. I want to know if anyone's got quick suggestions.

 

I am using ASP.net with vb.net in the backend. I have to make a page that takes an uploaded excel, or txt, or access file, and read the two columns. Anyone have any good ideas on how to do that? I looked into filestreams and all, but just not sure which format would be easier to read, quick converstion protocols or such.

 

Thx in advance

 

cz

  • Administrators
Posted

For access you will want to use ADO.Net rather than parsing the file structure yourself. Excel could be done either through ADO.Net or via interop (requires Office installed on the server to work though)

For a text file then use the classes from System.IO (probably find StreamReader is a good starting point)

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted
For access you will want to use ADO.Net rather than parsing the file structure yourself. Excel could be done either through ADO.Net or via interop (requires Office installed on the server to work though)

For a text file then use the classes from System.IO (probably find StreamReader is a good starting point)

Hmm....do you have any instructional sites that I can look up on to do this? I've got a vb.net book, but that doesn't cover much.

 

thx

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...