Access.2007.VBA.Bibl..

(John Hannent) #1
FIGURE 16.19
Creating an XML File item for Ribbon support.

The XML code for the Ribbon in this add-in is listed here (see Chapter 15 for more detailed infor-
mation on creating Ribbon XML code):

<?xml version=”1.0” encoding=”utf-8” ?>
<customUI
xmlns=”http://schemas.microsoft.com/office/2006/01/customui”>
<ribbon startFromScratch=”false”>
<tabs>
<tab id=”dbDemoTab”
label=”Visual Studio Add-in”
visible=”true”>
<group id=”dbAccessObjectsGroup”
label=”Create Access Objects”>
<button id=”btnCreateTable”
label=”Create New Table”
enabled=”true”
imageMso=”Table”
size=”normal”
onAction=”CreateTableInDesignView”/>
<button id=”btnCreateForm”
label=”Create New Form”
enabled=”true”
imageMso=”CreateFormInDesignView”
size=”normal”
onAction=”CreateNewForm”/>
<button id=”btnCreateReport”
label=”Create New Report”
enabled=”true”

Part III Adding More Functionality to Office

Free download pdf