Solved

How to put image in xml - UsysRibbons for Access 2007?

Posted on 2011-02-11
3
1,090 Views
Last Modified: 2013-11-27
Per the following code and the following URL:
http://www.databasedev.co.uk/access2007ribbon.html

How do I place an iamge above the label within each button as XML?
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
  <ribbon startFromScratch="false">
    <tabs>
      <tab id="dbCustomTab1" label="Equipment Collaborative" visible="true">
        <group id="dbCustomGroup1" label=" ">
             <button id="bIDExportObject" label="Export Objects" size="large" onAction="macExportObject"/>
        </group>
        	<group id="dbCustomGrou2" label=" ">
         <button id="bIDExportObject2" label="Unsplit Database" size="large" onAction="macUnsplit"/>
        </group>
	<group id="dbCustomGrou3" label=" ">
         <button id="bIDExportObject3" label="Split database" size="large" onAction="macSplit"/>
        </group>
	<group id="dbCustomGrou4" label=" ">
         <button id="bIDExportObject4" label="Compare Databases" size="large" onAction="macCompare"/>
        </group>
        <group id="dbCustomGroup5" label=" ">
         <button id="bIDExportObject5" label="Assign multiple PDFs" size="large" onAction="macAssignPDFs"/>
        </group>
	<group id="dbCustomGrou6" label=" ">
         <button id="bIDExportObject6" label="Open Previous Archive Database" size="large" onAction="macOpenArchive"/>
        </group>
        <group id="dbCustomGroup7" label=" ">
         <button id="bIDExportObject7" label="Archive This Database" size="large" onAction="macArchive"/>
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>

Open in new window

0
Comment
Question by:stephenlecomptejr
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
Helen_Feddema earned 500 total points
ID: 34879514
Use imageMso="ImageName"

Here is some Ribbon code I did for my Access 2007 book.  You have to find the name for the image somehow; here is a link for Ribbon info that may be helpful (this is for Office 2010):

http://office.microsoft.com/en-us/outlook-help/learn-where-menu-and-toolbar-commands-are-in-office-2010-and-related-products-HA101794130.aspx#_Toc268688375


<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> 
   <ribbon startFromScratch="false">
      <tabs>
         <tab id="dbCustomTab" 
            label="Extras" 
            visible="true">
         <group id="dbListingGroup" 
            label="Listing Fields">
           <button id="btnListTableFields" 
               label="List Table Fields" 
               enabled="true" 
               imageMso="CreateTable" 
               size="normal" 
               onAction="Extras (Ribbon).ListTableFields"/>
            <button id="btnListQueryFields" 
               label="List Query Fields" 
               enabled="true" 
               imageMso="CreateQueryInDesignView" 
               size="normal" 
               onAction="Extras (Ribbon).ListQueryFields"/>
            <button id="btnOpenOptionsDialog" 
               label="Select Options" 
               enabled="true" 
               imageMso="CreateFormBlankForm" 
               size="normal" 
               onAction="Extras (Ribbon).ExtrasOptions"/>
         </group>
         <group id="dbBackupGroup"
            label="Database Backup">
           <button id="btnBackupFrontEnd" 
               label="Back up current database" 
               enabled="true" 
               imageMso="Copy" 
               size="normal" 
               onAction="Extras (Ribbon).BackupFrontEndDB"/>
           <button id="btnBackupBackEnd" 
               label="Back up back-end database" 
               enabled="true" 
               imageMso="Copy" size="normal" 
               onAction="Extras (Ribbon).BackupBackEndDB"/>
         </group>
         </tab>
      </tabs>
   </ribbon>
</customUI>

Open in new window

0
 
LVL 1

Author Comment

by:stephenlecomptejr
ID: 34881358
0
 
LVL 1

Author Closing Comment

by:stephenlecomptejr
ID: 34881360
I appreciate it Helen.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Documents and settings folder 30 76
How to use VBA to update a record in a table in MS Access? 12 36
Powershell XML in variable 4 20
Delete QueryDef IF it Exists: Access VBA 5 33
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question