G
Guest
I'm trying to open an Excel file from a code behind page to an aspx page. I'm
getting the eror message:
System.Runtime.InteropServices.COMException: Old format or invalid type
library
My code is:
Dim oExcel As New Excel.Application
Dim oBooks As Excel.Workbooks
oBooks = oExcel.Workbooks
oBooks.Open("C:\Test.xls")
At the top I have
Imports Excel = Microsoft.Office.Interop.Excel
and I have set a reference to the Microsoft Excel 11.0 Object library
Anyone have any suggestion?
getting the eror message:
System.Runtime.InteropServices.COMException: Old format or invalid type
library
My code is:
Dim oExcel As New Excel.Application
Dim oBooks As Excel.Workbooks
oBooks = oExcel.Workbooks
oBooks.Open("C:\Test.xls")
At the top I have
Imports Excel = Microsoft.Office.Interop.Excel
and I have set a reference to the Microsoft Excel 11.0 Object library
Anyone have any suggestion?