473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

excel instance in VB.NET

Hi,
My next question is about excel instance in VB.NET
I have following code:
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range
oXL = CreateObject("Excel.Application")
oWB = oXL.Workbooks.Add
I have following code on form top:
Imports Microsoft.Office.Core
And I've receive following error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in TestOnly.exe
Additional information: Old format or invalid type library.
This error appear in every line where I try to use oXL object.
I have installed excel 2000 and excell XP.
Any ideas?
Tomek
Nov 20 '05 #1
8 4798
Make sure you have the latest version of the COM interop DLL for Office, I thinks its Office 11 version 2.3

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Tomek" <tn******@bcdplus.pl> wrote in message news:u3**************@TK2MSFTNGP11.phx.gbl...
Hi,
My next question is about excel instance in VB.NET
I have following code:
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range
oXL = CreateObject("Excel.Application")
oWB = oXL.Workbooks.Add
I have following code on form top:
Imports Microsoft.Office.Core
And I've receive following error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in TestOnly.exe
Additional information: Old format or invalid type library.
This error appear in every line where I try to use oXL object.
I have installed excel 2000 and excell XP.
Any ideas?
Tomek
Nov 20 '05 #2
OK. I have Office 10 version 2.2
Where I can find Office 11 version 2.3? I've try to find it on MS site but I can't. Please help.
Tomek

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:OH*************@TK2MSFTNGP12.phx.gbl...
Make sure you have the latest version of the COM interop DLL for Office, I thinks its Office 11 version 2.3

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Tomek" <tn******@bcdplus.pl> wrote in message news:u3**************@TK2MSFTNGP11.phx.gbl...
Hi,
My next question is about excel instance in VB.NET
I have following code:
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range
oXL = CreateObject("Excel.Application")
oWB = oXL.Workbooks.Add
I have following code on form top:
Imports Microsoft.Office.Core
And I've receive following error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in TestOnly.exe
Additional information: Old format or invalid type library.
This error appear in every line where I try to use oXL object.
I have installed excel 2000 and excell XP.
Any ideas?
Tomek
Nov 20 '05 #3
On Wed, 16 Jun 2004 14:35:13 +0200, "Tomek" <tn******@bcdplus.pl> wrote:

¤ Hi,
¤ My next question is about excel instance in VB.NET
¤ I have following code:
¤ Dim oXL As Excel.Application
¤ Dim oWB As Excel.Workbook
¤ Dim oSheet As Excel.Worksheet
¤ Dim oRng As Excel.Range
¤ oXL = CreateObject("Excel.Application")
¤ oWB = oXL.Workbooks.Add
¤ I have following code on form top:
¤ Imports Microsoft.Office.Core
¤ And I've receive following error:
¤ An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in TestOnly.exe
¤ Additional information: Old format or invalid type library.
¤ This error appear in every line where I try to use oXL object.
¤ I have installed excel 2000 and excell XP.
¤ Any ideas?
¤ Tomek

See the following:

BUG: "Old Format or Invalid Type Library" Error When Automating Excel
http://support.microsoft.com/default...b;en-us;320369
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #4
Paul seems to have hit the nail on the head with this one.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Tomek" <tn******@bcdplus.pl> wrote in message news:eH**************@TK2MSFTNGP12.phx.gbl...
OK. I have Office 10 version 2.2
Where I can find Office 11 version 2.3? I've try to find it on MS site but I can't. Please help.
Tomek

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:OH*************@TK2MSFTNGP12.phx.gbl...
Make sure you have the latest version of the COM interop DLL for Office, I thinks its Office 11 version 2.3

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Tomek" <tn******@bcdplus.pl> wrote in message news:u3**************@TK2MSFTNGP11.phx.gbl...
Hi,
My next question is about excel instance in VB.NET
I have following code:
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range
oXL = CreateObject("Excel.Application")
oWB = oXL.Workbooks.Add
I have following code on form top:
Imports Microsoft.Office.Core
And I've receive following error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in TestOnly.exe
Additional information: Old format or invalid type library.
This error appear in every line where I try to use oXL object.
I have installed excel 2000 and excell XP.
Any ideas?
Tomek
Nov 20 '05 #5
I don't want to install Office 2003 to get these files. I want to find some package with interesting files.
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:u9**************@TK2MSFTNGP11.phx.gbl...
Paul seems to have hit the nail on the head with this one.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Tomek" <tn******@bcdplus.pl> wrote in message news:eH**************@TK2MSFTNGP12.phx.gbl...
OK. I have Office 10 version 2.2
Where I can find Office 11 version 2.3? I've try to find it on MS site but I can't. Please help.
Tomek

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:OH*************@TK2MSFTNGP12.phx.gbl...
Make sure you have the latest version of the COM interop DLL for Office, I thinks its Office 11 version 2.3

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Tomek" <tn******@bcdplus.pl> wrote in message news:u3**************@TK2MSFTNGP11.phx.gbl...
Hi,
My next question is about excel instance in VB.NET
I have following code:
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range
oXL = CreateObject("Excel.Application")
oWB = oXL.Workbooks.Add
I have following code on form top:
Imports Microsoft.Office.Core
And I've receive following error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in TestOnly.exe
Additional information: Old format or invalid type library.
This error appear in every line where I try to use oXL object.
I have installed excel 2000 and excell XP.
Any ideas?
Tomek
Nov 20 '05 #6
Thanks Paul

Cor
Nov 20 '05 #7
Read Paul Clements post, he seems to have found and answer for you.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Tomek" <tn******@bcdplus.pl> wrote in message news:eO**************@TK2MSFTNGP11.phx.gbl...
I don't want to install Office 2003 to get these files. I want to find some package with interesting files.
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:u9**************@TK2MSFTNGP11.phx.gbl...
Paul seems to have hit the nail on the head with this one.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Tomek" <tn******@bcdplus.pl> wrote in message news:eH**************@TK2MSFTNGP12.phx.gbl...
OK. I have Office 10 version 2.2
Where I can find Office 11 version 2.3? I've try to find it on MS site but I can't. Please help.
Tomek

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:OH*************@TK2MSFTNGP12.phx.gbl...
Make sure you have the latest version of the COM interop DLL for Office, I thinks its Office 11 version 2.3

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Tomek" <tn******@bcdplus.pl> wrote in message news:u3**************@TK2MSFTNGP11.phx.gbl...
Hi,
My next question is about excel instance in VB.NET
I have following code:
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range
oXL = CreateObject("Excel.Application")
oWB = oXL.Workbooks.Add
I have following code on form top:
Imports Microsoft.Office.Core
And I've receive following error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in TestOnly.exe
Additional information: Old format or invalid type library.
This error appear in every line where I try to use oXL object.
I have installed excel 2000 and excell XP.
Any ideas?
Tomek
Nov 20 '05 #8
Thanks. That was a problem.

"Paul Clement" <Us***********************@swspectrum.com> wrote in message
news:u9********************************@4ax.com...
On Wed, 16 Jun 2004 14:35:13 +0200, "Tomek" <tn******@bcdplus.pl> wrote:

¤ Hi,
¤ My next question is about excel instance in VB.NET
¤ I have following code:
¤ Dim oXL As Excel.Application
¤ Dim oWB As Excel.Workbook
¤ Dim oSheet As Excel.Worksheet
¤ Dim oRng As Excel.Range
¤ oXL = CreateObject("Excel.Application")
¤ oWB = oXL.Workbooks.Add
¤ I have following code on form top:
¤ Imports Microsoft.Office.Core
¤ And I've receive following error:
¤ An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in TestOnly.exe ¤ Additional information: Old format or invalid type library.
¤ This error appear in every line where I try to use oXL object.
¤ I have installed excel 2000 and excell XP.
¤ Any ideas?
¤ Tomek

See the following:

BUG: "Old Format or Invalid Type Library" Error When Automating Excel
http://support.microsoft.com/default...b;en-us;320369
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)

Nov 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: mytfein | last post by:
Hi Everyone, Background: Another department intends to ftp a .txt file from the mainframe, for me to process. The objective is to write a vb script that would be scheduled to run daily to...
1
by: Rick Brown | last post by:
After reading 30+ threads on the subject and implementing pertinent changes I still have an instance of Excel that won't close. I hope its due to my poor coding and someone can spot the error....
5
by: Wenke Ji | last post by:
Hi I open a Excel workbook using below API: Set ExcelServer = CreateObject("EXCEL.Application") Set TargetWorkbook = ExcelServer.Workbooks.Open (CurrentBook) Befor the programm exit , I use...
12
by: elziko | last post by:
I'm using late binding (I must) to automate Excel. My code opens Excel after createing and poulating some sheets. My problem is that when the user finally decides to close Excel its process is...
2
by: Powerguy | last post by:
Hi all, I am looking for a way to get the Process id (or a handle) of an EXCEL process created from within my code. For example when the following code is executed: Dim EXL As...
3
by: Ian Dunn | last post by:
I'm simply trying to access an instance of Excel that has been opened manually by the user in order to put a few values in the existing sheet. Here's the code I've tried: Dim oXL As...
16
by: alexia.bee | last post by:
Hi all, In some weird reason, excel instance won;t die if i remove the comment from 4 lines of setting values into struct. here is a snipcode public...
9
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso...
16
by: Phil Stanton | last post by:
I have a form with a button which is supposed to open an Excel file (With lots of Macros /VBA) in it. The Excel file gets it's data from the Access program Here is the code Private Sub...
24
rauty
by: rauty | last post by:
Hi all, I'm trying to access the most recent instance of Excel so I can paste data. What works for me is if Excel isn't already opened, I open it and can paste the data where I want to. What...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.