Error while opening excel v9.0 (2000) workbook in .NET

dimple

Member
Joined
Mar 11, 2004
Messages
5
I have built a program in C# .NET that opens an excel spreadsheet and retrieves data from the sheet. The program works fine on my development machine, which is Windows 2000 and Excel 10.0 (2002). when I try and run it the production machine i get errors. The production machine is running excel 9.0 and windows 2000.

The error is at the following code.

xlApp = CreateObject("Excel.Application")

xlApp.Workbooks.Open(fileName:="G:\" & fileName) (ERROR IS HERE)

xlSheet = xlApp.Worksheets(1)

can anyone advice
 
Back
Top