Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a windows application where i am importing data from excel sheet to database table (in my system MS Office 2010 is installed) and importing is working is fine in my system.

I installed the application in other system(windows server 2008) in which MS Office 2003 is installed and when i am importing data from excel(2010) to database am getting error as below.

<b>The system does not file format.</b>


Regards,
Posted

1 solution

 
Share this answer
 
Comments
nm.nagaraju 10-Sep-12 7:23am    
I am using the same as below in my code,still getting the same.
OleDbConnection oconn = new OleDbConnection
(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
Server.MapPath("example.xls") + ";
Extended Properties=Excel 8.0");//OledbConnection and

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