Build COM add-in / plugin for Office 2007 - 2000 in Delphi.
Customize Ribbon button, controls, Office menu and toolbar.
Add-in Express™
|
| Add-in name, description, and load behavior | |
| Supported Office applications | |
| Collection of custom task panes (Office 2007 only) | |
| Collection of command bars (all Office versions) | |
| Host application interface | |
| When the add-in completes start-up routines or is required to shut down | |
| Before and after a custom task pane is created or shown, before a task pane is destroyed | |
| Before the Ribbon XML markup is created and loaded, after the Ribbon XML markup is loaded | |
| Before and after the add-in is registered | |
| Find CommandBar | |
| Find CommandBar control | |
| Find Ribbon control |
Add-in Express includes the following components used in the Add-in Module:
- Ribbon Tab
- Ribbon Office menu
- Quick Access Toolbar
- Command bar
- Outlook Explorer CommandBar
- Outlook Inspector CommandBar
- Built-in CommandBar Control Connector
- Outlook Bar Shortcut Manager
- Keyboard Shortcut
3. Adding custom Office 2007 Ribbon tab
Add an instance of the Ribbon Tab component (TadxRibbonTab) to the module and populate the tab with controls using a treeview-like editor. You can add any Ribbon control to the Ribbon tab.

The Ribbon Tab component creates and verifies the Office 2007 Ribbon XML markup automatically.
Technical information:
| Ribbon tab caption, key tip, and position in Ribbon | |
| Supported ribbons and context (say, Pivot Table in Excel or Table in Word) | |
| Visible (Boolean) | |
| Controls collection |
4. Adding custom Office 2007 menu
Add an instance of the Ribbon Office Menu component (TadxRibbonOfficeMenu) to the module and populate it using a treeview-like editor. The component supports adding the following Ribbon controls:
- Ribbon Button
- Ribbon SplitButton
- Ribbon CheckBox
- Ribbon Gallery
- Ribbon MenuSeparator

The Ribbon Office Menu component creates and verifies the Office 2007 Ribbon XML markup automatically.
Technical information:
| Supported ribbons | |
| Controls collection |
5. Adding custom task pane in Office 2007
The Add-in Express COM Add-in project wizard creates custom task panes you need and adds them to the project. In the Developer's Guide you can read how to add a task pane to an existing Add-in Express project.
6. Adding a command bar
To add a command bar to your add-in, drop a TadxCommandBar component onto the add-in module. Then specify the command bar properties and populate it with controls. Available control types follow below:
- CommandBar Button
- CommandBar Edit
- CommandBar ComboBox
- CommandBar DropDownList
- CommandBar Control

Technical information:
| Commandbar name, position, and protection | |
| Supported Office applications | |
| Temporary | |
| Visible | |
| Collection of command bar controls | |
| Flag, specifying if the commandbar will show up in the Ribbon interface |
7. Adding a new button to the Office toolbar
Right-click on the toolbar component and select the Controls item on the popup menu. In the Editing Controls window, select the Button item on the Add New popup button:

8. Running the add-in
Save the project, compile it, close all the applications that you have selected as add-in host applications, and register the add-in via "Run|Register ActiveX Server". Run one of the selected host applications, find your Ribbon tab or toolbar and click on the button:


