Hi,
Im trying to access Excel-cells. Therefor I added a reference to the installed Excel 8.0 Object Library.
Here is my .NET-code:
Dim xlApp As Excel.Application
Dim xlMappe As Excel.Workbook
Dim xlZelle As Excel.Range
xlApp = New Excel.Application()
xlMappe = xlApp.Workbooks.Open("C:\Kk.xls")
xlZelle = xlMappe.Worksheets(1).Range("A1")
xlZelle.Value = "content"
...
When it runs, the following error-message occurs:
Old format or invalid type library
Does someone know, whats going wrong ??
Im trying to access Excel-cells. Therefor I added a reference to the installed Excel 8.0 Object Library.
Here is my .NET-code:
Dim xlApp As Excel.Application
Dim xlMappe As Excel.Workbook
Dim xlZelle As Excel.Range
xlApp = New Excel.Application()
xlMappe = xlApp.Workbooks.Open("C:\Kk.xls")
xlZelle = xlMappe.Worksheets(1).Range("A1")
xlZelle.Value = "content"
...
When it runs, the following error-message occurs:
Old format or invalid type library
Does someone know, whats going wrong ??