Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have worker details in excel sheet. Now I want to read all the worker details from excel sheet in C#.net I am able to read excel data but problem is unable to read date formatted columns values from excel sheet.

For reading excel sheet I am using OleDbConnection.
Posted
Updated 8-Mar-13 22:37pm
v2
Comments
OriginalGriff 9-Mar-13 4:44am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Why can you read them?
What is happening when you try?
Any errors? Anything happen at all?
Use the "Improve question" widget to edit your question and provide better information.
Rockstar_ 9-Mar-13 5:02am    
What error actually are getting?
Maciej Los 9-Mar-13 14:29pm    
Good question!
Rockstar_ 9-Mar-13 5:03am    
Atleast you can read the data as string na? read it and again convert in the code....
Maciej Los 9-Mar-13 15:40pm    
What you mean "problem is unable to read date formatted columns values"??? I don't get it.

We found this library really helpful & easy to use for importing from Excel:

http://doddleimport.codeplex.com/[^]
 
Share this answer
 
See Reading Excel-file using Oledb - treating content of excel file as Text only[^]. It mainly says: add the following in the Extended Properties: HDR=NO;TypeGuessRows=0;ImportMixedTypes=Text
Cheers
Andi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900