Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel File
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!! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel File
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!! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
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!! |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel File
You will probably get more meaningful responses in one of the groups that
deals with Interop/Net. A complete guess, but are there limitations of which versions of Excel can work with versions of the .Net framework ? NickHK "jessi" wrote in message ... 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!! |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel File
Solution: System.Threading.Thread.CurrentThread.CurrentCultu re = System.Globalization.CultureInfo.CreateSpecificCul ture("en-Us") 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") Dim x As String = oWorkbook.Worksheets(1).Range("A2").Value "NickHK" wrote in message ... You will probably get more meaningful responses in one of the groups that deals with Interop/Net. A complete guess, but are there limitations of which versions of Excel can work with versions of the .Net framework ? NickHK "jessi" wrote in message ... 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!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to copy 2007 excel file formula results into a 2003 Excel file | Excel Discussion (Misc queries) | |||
double click excel file on the desktop excel opens but not file? | Excel Discussion (Misc queries) | |||
Excel 2003: doubleclick on file opens Excel window, not file. | Excel Discussion (Misc queries) | |||
ExtenXLS loads data into Excel 2002 file but damages the Excel file. | Excel Programming | |||
opening an excel file opens a duplicate file of the same file | Excel Discussion (Misc queries) |