
Signature
Regards,
Dmytro Lapshyn [MVP]
http://blogs.vbcity.com/DmytroL
> In VS 2005 and Excel 2003. I am writing an Automation Add-In in C# and
> don't
[quoted text clipped - 7 lines]
> (maybe
> it worked in .NET 1.1). Help?
The interface is set to dual - the functions still do not show up in the
Insert Function dialog in Excel. Does anyone have this working in .NET 2.0?
> Hi Matthew,
>
> Check that the public interface is marked as
> ComInterfaceType.InterfaceIsDual or at least
> ComInterfaceType.InterfaceIsDispatch (with the [InterfaceType] attribute).
Matthew Wieder - 23 Jun 2006 14:53 GMT
Solved it - Based on web examples, I had been implementing my class as:
public class myClass : Object, MyInterface, Extensibility.IDTExtensibility2
which makes the primary interface the object type and that was causing
the problems. Changed to:
public class myClass : MyInterface, Extensibility.IDTExtensibility2
and only the desired methods are showing in Excel now.
thanks.
> The interface is set to dual - the functions still do not show up in the
> Insert Function dialog in Excel. Does anyone have this working in .NET
[quoted text clipped - 6 lines]
>> ComInterfaceType.InterfaceIsDispatch (with the [InterfaceType]
>> attribute).