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 4 33089
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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...
|
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
===========================
|
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...
|
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.
| |
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");
|
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...
|
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....
|
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
|
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,...
|
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...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |