K
KC
Hi Gurus,
I am having problem opening an excel file from vb.net. My code looks like
this:
Dim EXL as Excel.Application
Dim wrkbook As Excel.Workbook
EXL = GetObject("", "Excel.Application")
EXL = CreateObject("Excel.Application")
wrkbook = EXL.Workbooks.Open("D:\Book1.xls")
It works fine on my Dev box. But when I move to my test server where I don't
have dotnet IDE. All I have is .NET framework 1.1 and Excel XP (same as
Dev).
It seems to work fine until it creates EXL object but it fails on "wrkbook
= EXL.Workbooks.Open("D:\Book1.xls").
The error i get is "QueryInterface for interface Excel._Application failed".
I have Microsoft Excel 10.0 library set as reference..
Has anyone encountered same problem? Please help..
Thanks..
I am having problem opening an excel file from vb.net. My code looks like
this:
Dim EXL as Excel.Application
Dim wrkbook As Excel.Workbook
EXL = GetObject("", "Excel.Application")
EXL = CreateObject("Excel.Application")
wrkbook = EXL.Workbooks.Open("D:\Book1.xls")
It works fine on my Dev box. But when I move to my test server where I don't
have dotnet IDE. All I have is .NET framework 1.1 and Excel XP (same as
Dev).
It seems to work fine until it creates EXL object but it fails on "wrkbook
= EXL.Workbooks.Open("D:\Book1.xls").
The error i get is "QueryInterface for interface Excel._Application failed".
I have Microsoft Excel 10.0 library set as reference..
Has anyone encountered same problem? Please help..
Thanks..