ysommer
Programmer
- Feb 26, 2001
- 45
Hi,
I'm Trying to open a excel workbook in c# I add a refernce
in my project to Microsoft Excel Object 10.0.
and I write this code:
Excel.Application oExcel = new Excel.Application();
oExcel.Visible = true;
Excel.Workbook oBook = oExcel.Workbooks.Add(Excel.XlWBATemplate.xlWBATWorksheet);
But I always get the exception "Old Format or Invalid Type Libary"
I cant figure out whats the problem,
Any sugesstions?
Thanks,
Yoel
I'm Trying to open a excel workbook in c# I add a refernce
in my project to Microsoft Excel Object 10.0.
and I write this code:
Excel.Application oExcel = new Excel.Application();
oExcel.Visible = true;
Excel.Workbook oBook = oExcel.Workbooks.Add(Excel.XlWBATemplate.xlWBATWorksheet);
But I always get the exception "Old Format or Invalid Type Libary"
I cant figure out whats the problem,
Any sugesstions?
Thanks,
Yoel