Thread: Excel File
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
jessi[_2_] jessi[_2_] is offline
external usenet poster
 
Posts: 6
Default Excel File


In Asp.Net 1.1 using VB.NET


"NickHK" wrote in message
...

Is this supposed to be in VBA or ASP ?
Or one of the .Net languages ?

It's not valid VBA.

NickHK

"jessi" wrote in message
...

Hello,

I need to open an excel Workboot from an existing excel file, but I get

the
following error:

Old format or invalid type library

Here is my code:

Dim oExcel As Excel.Application
oExcel = New Excel.Application
Dim oWorkbook As Excel.Workbook
oWorkbook =

oExcel.Workbooks.Open(Filename:=Request.ServerVari ables("APPL_PHYSICAL_PATH"
)
& "otrapruebamas.xls") 'This line generates the exception
Dim x As String = oWorkbook.Worksheets(1).Range("A1").Value

I need help, thanks!!