Solved

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

Posted on 2011-02-11
3
1,081 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now