473,854 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cannot find Microsoft.offic e.Interop

hi,

Two questions, i dont know if the cause if these two problems is the same.
1.
As soon as i Add->Reference -> Microsoft Excel 11.0 Object library. It
gives an error
'The referenced component 'Excel' could not found.

I downloaded PIA from MS website this morning.After a bit of digging i found
in the /assembly folder that Microoft/office/interop/excel.dll is present
but the version is 10.0.4504. I am wondering whether it makes a difference
and causes the error ? Do i need to get the latest PIA (version 11) to
colate with MS Excel 11.0?

2.

When i try to import Interop namespace, the intelisense does not show it
after Microsoft.offic e, instead it shows 'core'. How do i get Interop

Everything was working fine before i installed Office 2003 this morning and
started referncing it.

Anyhelp is appreciated.
Irfan

Nov 21 '05 #1
4 33104
Download the PIAs from here:

Page:
-----

http://www.microsoft.com/downloads/d...displaylang=en

Direct Link:
------------

http://download.microsoft.com/downlo...235/oxppia.exe

From what I remember, you extract them to a folder of your choice & then run
the batch file to register them

In your project, click 'add reference', click browse & find the
'Microsoft.Offi ce.Interop.Exce l.dll' file, click 'open' & then click 'ok'.
You will now see the Excel object listed under refences.

Switch to the code view of the form & type:

Imports Excel = Microsoft.Offic e.Interop

That will give you exactly what you wanted.

I hope this helps

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #2
Crouchie,

Browsing to the microsoft.offic e.interop worked perfect. Thanks.
However, when i use this method i am not able to specify which Excel Object
library i am referncing ie; 10.0 or 11.0.

Secondly,
I want to use 11.0 , but when i referance it, the IDE again warns me that
'referance component 'excel' cannot be found'. which is not the case when i
referance 10.0
Any suggestions, as to why i get a warning when i refer to Excel 11.0 object
library will be highly appreciated.

Irfan
"Crouchie19 98" <cr**********@s pamcop.net> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Download the PIAs from here:

Page:
-----

http://www.microsoft.com/downloads/d...displaylang=en

Direct Link:
------------

http://download.microsoft.com/downlo...235/oxppia.exe

From what I remember, you extract them to a folder of your choice & then
run
the batch file to register them

In your project, click 'add reference', click browse & find the
'Microsoft.Offi ce.Interop.Exce l.dll' file, click 'open' & then click 'ok'.
You will now see the Excel object listed under refences.

Switch to the code view of the form & type:

Imports Excel = Microsoft.Offic e.Interop

That will give you exactly what you wanted.

I hope this helps

Crouchie1998
BA (HONS) MCP MCSE

Nov 21 '05 #3
Now, take a look at this article:

http://support.microsoft.com/default...b;en-us;822750

Example:

Private WithEvents xlApp As Excel.Applicati on
Private xlBook As Excel.Workbook

In a sub()

xlApp = CreateObject("E xcel.Applicatio n")
xlBook = xlApp.Workbooks .Add()
....
End sub

or see this page:

http://support.microsoft.com/kb/301982/

You'll get the idea

I hope this helps

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #4
many thanks, Crouchie
"Crouchie19 98" <cr**********@s pamcop.net> wrote in message
news:eM******** ******@TK2MSFTN GP15.phx.gbl...
Now, take a look at this article:

http://support.microsoft.com/default...b;en-us;822750

Example:

Private WithEvents xlApp As Excel.Applicati on
Private xlBook As Excel.Workbook

In a sub()

xlApp = CreateObject("E xcel.Applicatio n")
xlBook = xlApp.Workbooks .Add()
...
End sub

or see this page:

http://support.microsoft.com/kb/301982/

You'll get the idea

I hope this helps

Crouchie1998
BA (HONS) MCP MCSE

Nov 21 '05 #5

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

Similar topics

8
8209
by: | last post by:
Hi All, I'm tring to write an application which open .xls files and get information from them ( using .xls file as a database ). According to the MSDN ( http://support.microsoft.com/default.aspx?scid=kb;EN-US;302094 ) I must add Microsoft Excel Object Library as an reference OK It works fine ... but when I place the line
1
1389
by: garyinmiami2003 | last post by:
Can someone help me? I am running Visual Studio 2003, Framework 1.1 and IIS (do remember), and OFFICE 2003. I noticed when trying to use it that visual studio could not find "Microsoft.Office.Interop.word". I could not find it among the references in the "add a reference" procedure. I tried importing and error- could not find... Then I went to the Ms download site and downloaded 2003 interop stuff for office, lloked in visual studio...
1
15974
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the reference and it works, however when I add the reference the application can't find it. Not sure why it says the system cannot find the file when it exists in that location? Please help, thanks in advance... GOAL ===========================
5
27260
by: C# newbie with big problems | last post by:
Ok, I've tried everything I could come up with but nothing is working. I am creating an application which needs to post information into an excel document. I have not yet had a chance to play with any of the methods because I cannot pull in the Microsoft.Office.Interop.Excel class. I am using Visual c# 2005 Express as my IDE, and here what I have done so far. I open a new project and select Project->Add Reference Then I go to the...
1
3523
by: Alan T | last post by:
VS 2005 and MS Office 2003 installed. I can include Microsoft.Office.Core and Word in the references so I can add the using Microsoft.Office.Interop.Word. However, my workmate cannot do the same thing although he also got VS2005 and MS Office 2003 installed. He can only add Microsoft.Office.Core in the using clause but no Microsoft.Office.Interop.Word.
2
7312
by: JC | last post by:
Anybody knows what problem has this code? I think, in the Garbage Collector? You know the Solution? The program in the test's case, whit 350 contacts, run OK before number 86. The error is a "Array index out of bounds". Microsoft.Office.Interop.Outlook._Application olApp = new Microsoft.Office.Interop.Outlook.ApplicationClass(); Microsoft.Office.Interop.Outlook._NameSpace olNs = olApp.GetNamespace("MAPI");
9
48024
by: sajithkahawatta | last post by:
my web page C#.net is work properly in my iis .but when i publish in another server it give errers.i used vs2005 and ms word 2003. but in the server there is no vs2005 or word installed. it has only .net frame work installed.folowing the error, Parser Error Message: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot...
0
3614
by: frederick.the.fool | last post by:
I'm writing a project that does Visio automation. I'm writing it in C+ +/CLI because it needs to reference a good amount of native C++ code. One way to call the Visio API, of course, is to use the COM interface provided in Visio SDK. However, a colleague of mine has been using Microsoft.Office.Interop.Visio in his VB.NET project, which is far more convenient than COM. I thought I could do the same in C++/CLI, but it didn't work....
3
11658
OuTCasT
by: OuTCasT | last post by:
Hi I have created an asp.net project that exports items from datagridview to and outlook calendar This is the code that i have used.. Dim body As String Dim ends As String Dim location As String Dim start As String Dim subject As String
0
9903
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9754
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11044
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10692
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7927
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7084
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5754
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5952
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4567
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.