I create a Excel 2010 Addin project in Visual Studio 2010 [Targeting .NET 4.0 Client profile, by default]
I create a Folder within my project.
Add a Ribbon [Designer] Control in newly created folder.
Add some UDF class in seperate folder.
Compile and get this error
'xxx.xxx.ThisRibbonCollection' does not contain a definition for 'GetRibbon' and no extension method 'GetRibbon' accepting a first argument of type 'xxx.xxx..ThisRibbonCollection' could be found (are you missing a using directive or an assembly reference?)
Here is auto generated code for the same.
partial class ThisRibbonCollection
{
internal AcousticalRibbon AcousticalRibbon
{
get { return this.GetRibbon<AcousticalRibbon>(); }
}
}
I read in older blog post, referring mainly to VSTO 3.0 [I am using VSTO 4.0] to extend this class with MS.Office.Tools.Ribbon.RibbonReadOnlycollection, However when I did that it ask to implement other Interface method, which are though some basic method
of object, but not sure what to write code for them and hence I am not very please to implement them unless that is the only method. Any idea why I am getting this error ?
Sumit Gupta http://www.sumitgupta.net