Access.2007.VBA.Bibl..

(John Hannent) #1
FIGURE 16.18

Adding Assembly information to the add-in.


Adding Functionality to the Shared Add-in ............................................................


For the Visual Studio add-in I used components of the Access object model to create a table, form,
or report programmatically, adding fields to the table and controls to the form or report. To imple-
ment this functionality, I needed to write the custom Ribbon’s XML code, three button functions,
and some supporting code.

To create the Ribbon XML and embed it within the project, first create an XML File item by select-
ing Project➪Add New Item, and then the XML File item in the Add New Item dialog (give the file
the name Ribbon.xml), as shown in Figure 16.19.

Customizing the Access Ribbon with a Visual Studio 2005 Shared Add-in 16

Free download pdf