Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-02-11
3
Medium Priority
?
1,127 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 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

824 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