Click here to Skip to main content
15,918,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
In my application I am converting excel data into dataset using microsoft.jet.oledb driver. I have used oledb 4.0 and excel 8 in connection string. It works fine for excel 2003 but I have to convert data from excel 95 also which is system generated file. At that time I am not getting anything in dataset. When I save as that file in latest version it works fine. I tried using excel 5 in connection string but it didnt work. Please help me or suggest some alternative.

Thanks in advance...
Posted
Comments
Richard Deeming 7-Oct-14 11:08am    
Support for such an old version is going to be difficult.

See if NPOI[^] can open the file.
betu.009 7-Oct-14 11:15am    
ya i know, but its a requirement. I have to do it.
Richard Deeming 7-Oct-14 11:21am    
Looks like NPOI won't work:
http://apache-poi.1045710.n5.nabble.com/Reading-Excel-5-0-7-0-files-td2302502.html[^]
(NB: NPOI is a port of the Java POI framework.)

NExcel[^] claims to support Excel 97, and is a port of a Java API[^] which claims to support Excel 95, so it might work.
Maciej Los 7-Oct-14 11:10am    
What exactly have you tried till now?
betu.009 7-Oct-14 11:14am    
I tried to change the connection string made excel 5, but it didnt work. I thought to open file programmatically and save as it in latest version. Dont know how to do it but i think it should work. Please suggest something

1 solution

It will be hard to find information on a 20 year old product; however, this link seems to have some samples that work.

http://stackoverflow.com/questions/2246797/get-sheet-names-in-excel95-workbook-using-oledb[^]
 
Share this answer
 
Comments
Maciej Los 7-Oct-14 11:18am    
5ed!
betu.009 7-Oct-14 11:20am    
I have already tried this one. But it didnt work. Thanks for the reply
ZurdoDev 7-Oct-14 11:22am    
Then please click on Improve question link and post the code you have tried. If other people say it works then something must be different about what you are doing.

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