Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using excel sheet to upload some information to database.
I am writing:
String conectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + excelFile + ";Extended Properties=Excel 8.0;";

as connection string.
But, when I am uploading a excel file in 2007(.xlsx) is is giving an exception.

I want to convert excel sheet of 2007 to 2003 i.e. .xlsx to .xls.

I tried saveas but it is not working.
Posted
Updated 21-Nov-10 21:27pm
v2

1 solution

Within Excel, the save as function gives the option of saving as an Excel 97-2003 file.
I presume this is how you are saving it, rather than open/save programmatically?


This may help[^]
 
Share this answer
 
Comments
Slacker007 24-Nov-10 5:39am    
Good call! :)

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