Prerequisites
Use Microsoft Visual Studio 2008 or 2010. If you
use Visual Studio 2010, choose the .NET Framework 3.5.
Procedure
- Create an empty class library
project.
- Set a name that ends with
"RibbonExtension".
- Add the following .dlls as References
in the project:
- FPMXLClient.RibbonUtilies.dll
Browse to the
folder that contains the EPM plug-in dlls.
- stdole.dll
This dll is available in . NET Framework
- Office.dll V12
This dll is available in . NET Framework
- System.ComponetModel.Composition.dll
Browse
to the folder that contains the EPM plug-in dlls.
- Create an empty class.
- Implement the interface
IEpmRibbonExtensibility.
- Add this using:
using FPMXLClient.RibbonUtilies;
using System.ComponentModel.Composition;
- Add
[Export(typeof(IEpmRibbonExtensibility))]
just above the definition of the class, as follows:
[ Export ( typeof ( IEpmRibbonExtensibility ))]
public class MemberRecognitionCustomButton : IEpmRibbonExtensibility
{
- Implements all the methods that
are defined in the interface IEpmRibbonExtensibility.
For more information about the methods, see
the "Methods" section of the current documentation.
- Build your project.
The .dll is
generated. The dll is named after the project and therefore ends with
"RibbonExtension.dll". The dll must end with "RibbonExtension.dll".
- Copy the dll and paste it in the folder that contains all EPM plug-in dlls.
- Open Microsoft Office Excel or PowerPoint.
Your extension
is taken into account.