Below is my Code to show Excel
objExcel = new Microsoft.Excel.Interop.Application();
object objOpt = System.Reflection.Missing.Value;
objExcel.Visible = true;
objExcel.Workbooks.Open(fi.FullName,
objOpt, objOpt, objOpt, objOpt, objOpt, objOpt, objOpt,
objOpt, objOpt, objOpt, objOpt, objOpt, objOpt, objOpt);
Now the problem is if i have xls file made with excel 2003 it will work if the file is made with excel 2007,2010 then it won't open.Gives the error File is not in recognizable form Same code runs fine in win7.
Anychanges i need to do in reading excel file of both 2003 and 2007.
Note:Both files created in excel 2003 and 2007 has extension .xls