?
Solved

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

Posted on 2011-02-11
3
Medium Priority
?
1,110 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
Helen Feddema earned 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Suggested Courses

752 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