error while accessing an excel file

  • Thread starter Thread starter sotto
  • Start date Start date
S

sotto

If i do:

dim mExcel As Excel.Application
dim mWB As Excel.Workbook

mExcel = New Excel.Application
mWB = mExcel.Workbooks.Open("c:\test.xls")

I get always an unhandled COMexception ... "Old format or invalid type
library"

I'm using vb.net 2003 & i've got "microsoft excel 10.0 object library"
referenced.

(i also got office xp installed)

Whichever excel-input file i use...i get that error...

Anyone can help me with this?

tia,

sotto
 
Back
Top