473,394 Members | 1,766 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,394 software developers and data experts.

Error Using Office

I add reference office.dll and Microsoft Office Excel Component to my
project and use :
---------------------------------------
Dim App As Excel.Application, BarName as String

...

Dim Bar As Microsoft.Office.Core.CommandBar =
App.CommandBars(BarName)

...
----------------------------------------

Than recieve this error in my task board for the second code line:
+ 'Reference required to assembly 'Interop.Microsoft.Office.Core'
containing the type 'Microsoft.Office.Core.CommandBars'. Add one to
your project.'

What can I do in order to solve this problem?

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #1
1 2033
If you're using .Net, right click on your project and choose Add Reference.
When the dialog appears, select the COM tab and find Microsoft Office 10.0
Object Library. (Your version of Office may differ)

Hope this helps.
Craig, VB .Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
Subject: Error Using Office
From: ni*@miracom.co-dot-il.no-spam.invalid (ns2k)
Newsgroups: microsoft.public.dotnet.languages.vb
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
User-Agent: newsSync (.NET Forum - Dot Net Boards.com) 23770
Message-ID: <3f**********@127.0.0.1>
Date: 7 Jan 2004 04:48:21 -0600
Lines: 25
X-Authenticated-User: $$f_w91tn_g
X-Comments: This message was posted through <A href
X-Comments2: IMPORTANT: Newsfeed.com does not condone,
X-Report: Please report illegal or inappropriate use to
Organization: Newsfeeds.com http://www.newsfeeds.com 100,000+ UNCENSORED Newsgroups.Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GXS01.phx.gbl!TK2MSFTNGXA0
5.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!newsfe
ed.icl.net!newsfeed.fjserv.net!news-out2.nntp.be!local!text-east!not-for-mai
lXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:170586
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

I add reference office.dll and Microsoft Office Excel Component to my
project and use :
---------------------------------------
Dim App As Excel.Application, BarName as String

..

Dim Bar As Microsoft.Office.Core.CommandBar =
App.CommandBars(BarName)

..
----------------------------------------

Than recieve this error in my task board for the second code line:
+ 'Reference required to assembly 'Interop.Microsoft.Office.Core'
containing the type 'Microsoft.Office.Core.CommandBars'. Add one to
your project.'

What can I do in order to solve this problem?

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---



Nov 20 '05 #2

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

Similar topics

2
by: Aprochko | last post by:
Attempting to access outlook from C# .NET ASP app. Have added reference to COM Microsoft Outlook 11 Object Library. Have included using System.Runtime.InteropServices; using System.Web.Mail;...
8
by: sudha | last post by:
Hi, To open a word doc from c#, i use the following code : Word.ApplicationClass WordApp = new Word.ApplicationClass (); // give any file name of your choice. object fileName =...
9
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web...
4
by: james margey | last post by:
Hi to all, I have spent 3 days at this error and i have two days to go for a deadline, and i am about to go off my nut, the reason being: Microsoft dont seem to be able to provide a solution, I...
2
by: Howard Kaikow | last post by:
MSFT KB article 302896 includes a step by step example demonstrating how to build an Office COM in VB .NET, Yesterday, I implemented the example and it works correctly when starting each of the...
3
by: Benny Raymond | last post by:
I get the following error message when trying to use the Excel Interop on my wife's machine however I don't get it on my own - we have the same version of Office installed - what could be the...
0
by: zfraile | last post by:
I'm getting this error from the JIT compiler at runtime, but only on my boss' machine, not my development machine. I believe the error is generated from a call to an Excel object, but I can't tell...
0
by: nithya176 | last post by:
Hey guys..i jus thought if u cud help me out wit this error im gettin. Im writing a c# code to create an add-in in visio using VSTO. I found this code which was in VB and i'm tryin to convert it to...
2
by: kevinr | last post by:
Hi, I am brand new to VB, and I am trying to deploy Office 2007 on my network here at work. We used part of this script to do another deployment, and I have taken pieces and tried to edit for this...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
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
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.