Hello.
I get an 'System.Runtime.InteropServices.COMException' with Additional information: 'Old format or invalid type library.' when adding a workbook in an instance of Excel from VB.Net.
This is the latest code I've tried:
Dim xlsApp As Excel.Application
xlsApp = CType(CreateObject("Excel.Application.9"), Excel.Application)
Dim wbNew As Excel.Workbook = xlsApp.Workbooks.Add("c:\bok1.xlt")
I've also tried CreateObject etc, but I allways get the same Error message.
I get an 'System.Runtime.InteropServices.COMException' with Additional information: 'Old format or invalid type library.' when adding a workbook in an instance of Excel from VB.Net.
This is the latest code I've tried:
Dim xlsApp As Excel.Application
xlsApp = CType(CreateObject("Excel.Application.9"), Excel.Application)
Dim wbNew As Excel.Workbook = xlsApp.Workbooks.Add("c:\bok1.xlt")
I've also tried CreateObject etc, but I allways get the same Error message.