G
GordonC
I am trying to create an automation Add-in for Excel using C#. I have tried
to following the directions in the MSDN article
http://msdn2.microsoft.com/en-us/library/ms173189(vs.80).aspx
I can not make that simple example work. I have Office 2003 and VS .NET
2005. Also, I have noticed some errors in the written instructions.
I copied the code from the MSDN article and followed the directions.
1. Create a new Visual C# Class Library project called ExcelAddIn. ( I
assume that means a Windows>Class Library.)
2. I checked the box "Register for COM Interop" under Output>Build in the
Project Properties Window.
3. I built the project. I received a warning message.
"...ExcelAddIn.dll does not containg any types that can be registered for COM
Interop."
4. The MSDN article states to press F5 next to compile the project. This
must be an error since one can not execute a class library project.
5. The ExcelAddIn does not appear in the Excel Automation Servers Dialog Box.
How can I make this simple example work?
Does anyone have the complete code and project file for this example?
Thanks,
Gordon
to following the directions in the MSDN article
http://msdn2.microsoft.com/en-us/library/ms173189(vs.80).aspx
I can not make that simple example work. I have Office 2003 and VS .NET
2005. Also, I have noticed some errors in the written instructions.
I copied the code from the MSDN article and followed the directions.
1. Create a new Visual C# Class Library project called ExcelAddIn. ( I
assume that means a Windows>Class Library.)
2. I checked the box "Register for COM Interop" under Output>Build in the
Project Properties Window.
3. I built the project. I received a warning message.
"...ExcelAddIn.dll does not containg any types that can be registered for COM
Interop."
4. The MSDN article states to press F5 next to compile the project. This
must be an error since one can not execute a class library project.
5. The ExcelAddIn does not appear in the Excel Automation Servers Dialog Box.
How can I make this simple example work?
Does anyone have the complete code and project file for this example?
Thanks,
Gordon