Re: Adding reference of Excel COM won't work
- From: "RobinS" <RobinS@xxxxxxxxxxxxxxx>
- Date: Thu, 1 Feb 2007 01:44:54 -0800
<yevron2@xxxxxxxxx> wrote in message
news:1170236758.058987.115090@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jan 31, 11:23 am, Eran.Ya...@xxxxxxxxx wrote:
Hi,
I have project that automate excel(using Excel COM) which works fine
in my home.
I took the project from my home to work and tried to build the project
but it won't built.
I get error "The type or namespace name 'Excel' could not be found".
the error points to line in my code: "public Excel.Application
ExcelObj = null".
I deleted the reference and added new "Excel 11.0". but that won't
help. I don't have problem in the code because it works on other
station. I have in all stations Office2003.
Do you think that i need to reinstall Excel?
Maybe the dll was corrupted?
TIA,
eyasso.
When you install office on your computer you should select a custom
setup and install the interop assembly of office and then it will
work.
(If you don't know what the interop are just make a full installation
of everything...)
I'm doing OLE Automation of Excel, and did not have to change my current
installation of Office. I'm running Excel 2003.
Here are the references I have in my Project References:
Microsoft Excel 11.0 Object Library
Microsoft Office 11.0 Object Library
Microsoft Visual Basic for Applications Extensibility 5.3
OLE Automation
Do you have
using Microsoft.Office.Interop;
at the top of your program?
Do you have the same version of Visual Studio at home and at work? Have you
tried running the compiled version from home on your work machine without
rebuilding it?
Does any of this information help?
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
.
- Follow-Ups:
- Re: Adding reference of Excel COM won't work
- From: Eran . Yasso
- Re: Adding reference of Excel COM won't work
- Prev by Date: Re: VS2005 NOT Compatiblke with Vista? Are you serious?!
- Next by Date: Re: Problem with DataGridView and BindingSource
- Previous by thread: Re: VS2005 NOT Compatiblke with Vista? Are you serious?!
- Next by thread: Re: Adding reference of Excel COM won't work
- Index(es):
Relevant Pages
|