473,394 Members | 1,840 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.

C# Excel Add-In Question (Intellisense)

Hello all,

I have, what I hope, is a relatively quick question.
I've made a shared add-in in VS.NET 2003 to be used in
Excel XP.

The add-in exposes an optimization process that can be
conducted from Excel VBA (currently have no desire to
make a more formal UI).

I'm up to the debug phase, so i right-clicked and did a
Build on the Add-in, where I was then able to add the add-
in as a programmatic reference in Excel VBA. Worked fine.

I can dimension objects in this add-in and see the
package name and objects just fine. I can even get it to
run.

What I can't do is see any method signatures in Excel's
Object Explorer (type library reader) or via Intellisense.

Anyone have ideas as to why this may be happening?

Thanks in advance,

Greg
Nov 16 '05 #1
1 1697
I've managed to answer my own question but i thought I'd
post what I found here for possible benefit of others.

It seems the early binding required for Intellisense
is 'lost' within the CCW wrapper during assembly.

To fix it you have to create a public interface that
defines the method contract and then implement the class
with an attribute that prevents COM from overwriting the
one you intend.

The answer can be found in this article for VB.NET:

http://support.microsoft.com/?kbid=813809

Additional information on the attribute can be found at:

http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpguide/html/cpconintroducingclassinterface.asp

Greg

-----Original Message-----
Hello all,

I have, what I hope, is a relatively quick question.
I've made a shared add-in in VS.NET 2003 to be used in
Excel XP.

The add-in exposes an optimization process that can be
conducted from Excel VBA (currently have no desire to
make a more formal UI).

I'm up to the debug phase, so i right-clicked and did a
Build on the Add-in, where I was then able to add the add-in as a programmatic reference in Excel VBA. Worked fine.
I can dimension objects in this add-in and see the
package name and objects just fine. I can even get it torun.

What I can't do is see any method signatures in Excel's
Object Explorer (type library reader) or via Intellisense.
Anyone have ideas as to why this may be happening?

Thanks in advance,

Greg
.

Nov 16 '05 #2

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

Similar topics

0
by: Nick Carter | last post by:
The following C# lines of code work fine with Excel 2000:- ExcelApplication excelApplication = new Excel.Application(); ExcelWorkbook excelWorkbook =...
5
by: touf | last post by:
Hi, I've an error when I declare Dim oBook As Excel.Workbooks What imports, and reference do I need to use Excel.Workbooks class? Thanks
4
by: msnnews.msn.com | last post by:
hi there, i've got a form that populates a datagrid, and a button that calls a function to export to an excel file. All is well with the export, no errors are returned, but the Excel instance...
1
by: Steven | last post by:
Hello, I use the following code to make an Excel-file, which works fine with Excel 2003 (and the MS Excel 11.0 object library): Dim Excel As New Excel.Application Dim oBook As...
2
by: John Walker | last post by:
Hello, Below is my code for exporting a datagrid to Excel. It works fine, but we're going to need to somehow have a report header, user input parameters and system date display at the top of the...
4
by: jmalvika | last post by:
Hi all, I'm trying to generate an excel report from an ASP web page using .. "response.ContentType = "application/vnd.ms-excel" .... I need to add a custom header & footer to the excel...
0
by: strider | last post by:
I have struggled with this problem and the solution is that you have to declare a variable for each and every object or collection within the Excel application that you want to use: For example:...
2
by: james | last post by:
Hi all, I am trying to convert some old VB6 code to .NET. Take this first section (there is more, but hey-ho...) Dim XLApp As Object Dim XLSheet Dim XLBook Dim HeaderItem As String Dim...
1
by: DennisBetten | last post by:
First of all, I need to give some credit to Mahesh Chand for providing me with an excellent basis to export data to excel. What does this code do: As the title says, this code is capable of...
3
by: JFKJr | last post by:
Hello everyone, the following is the code which opens an excel file and creates a toolbar button. And, when I click the toolbar button as shown at line #28, the code should call the "Example"...
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
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...

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.