G
Guest
Im trying to create an Excel Object in .NET, many times I did in VB6
So here the code in a .NET window form
Private Sub btnExcel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExcel.Clic
Dim FileName As Strin
Dim appExcel As New Excel.Application(
Dim Hoja As Excel.Workshee
FileName = "anyfile.xls
Hoja = appExcel.Workbooks.Open(FileName) 'IN THIS LINE OCURRS THE ERROR
End Su
"Run-time exception thrown : System.Runtime.InteropServices.COMException - Old format or invalid type library.
So here the code in a .NET window form
Private Sub btnExcel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExcel.Clic
Dim FileName As Strin
Dim appExcel As New Excel.Application(
Dim Hoja As Excel.Workshee
FileName = "anyfile.xls
Hoja = appExcel.Workbooks.Open(FileName) 'IN THIS LINE OCURRS THE ERROR
End Su
"Run-time exception thrown : System.Runtime.InteropServices.COMException - Old format or invalid type library.