Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
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…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

911 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

22 Experts available now in Live!

Get 1:1 Help Now