Solved

Trouble getting a custom Access ribbon to show a png.

Posted on 2014-04-15
5
619 Views
Last Modified: 2014-04-20
Gurus,

I'm trying to design a custom menu in Access 2010. I want transparency for my icons, but am having trouble getting the icons to show up.

I have tried to follow the directions found at http://www.accessribbon.de/en/?Access_-_Ribbons:User_Defined_Icons___Pictures_In_Ribbon_Controls but no joy.

My ribbon XML is as follows:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
  <ribbon startFromScratch="false">
    <tabs>
      <tab idMso="TabCreate" visible="true" />
      <tab id="dbCustomTab" label="Test Menu" visible="true">
        <group id="dbCustomGroup" label="Test" >
            
 <button id="OpenfrmPOEntry_0_7290FC08" label="PO Entry" imageMso="getImages" onAction="OnButtonPress" size="large"/>
         </group>

      </tab>
    </tabs>
  </ribbon>
</customUI>

Open in new window


The function for getting the image is as follows:
Public Sub getImages(control As IRibbonControl, _
                     ByRef image)
                     
        Set image = LoadPictureGDIP(getAppPath & "cash1.png")

End Sub

Open in new window


I do have the function getAppPath so it does resolve to the correct path, though I have also tried specifying the exact path ("C:\etc. etc.") If I put "msgbox getAppPath & "cash1.png"" into the immediate window I get the correct path.

I do have the function basGDIPlus as specified on accessribbon.de's page listed above. It can be found here: http://www.accessribbon.de/Count/count.php?id=73

My ribbon loads ok and performs the code I have assigned to it, but no picture. I have tried a number of sizes and resolutions, including 300x300, 32x32, 64x64, 16x16.  I am exporting the png out of Gimp using these settings:
Gimp shot
Any help would be appreciated.
0
Comment
Question by:Michaelj42
[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
  • 3
  • 2
5 Comments
 
LVL 75
ID: 40002063
I feel your pain.
Go here:  http://www.axialis.com

I've found that if you use the icons here, you will not have this problem. And there are several free sets you can download to test with.  Each pak contains multiple sizes (16x16, 32x32 etc.) and other variations.

I use these almost exclusively in my Ribbons ... and they look GREAT.

mx
0
 
LVL 5

Accepted Solution

by:
Michaelj42 earned 0 total points
ID: 40002148
I ended up just purchasing IDBE Ribbon Creator from http://www.ribboncreator2010.de.  I downloaded the shareware version and it just took all the pain out of making the ribbon, so I thought it was well worth the $41.
0
 
LVL 75
ID: 40002158
Well ... I've been using RC 2010 and 2013 for 2 years.  Outstanding product. However, for icons I use the Axialis icons.

mx
0
 
LVL 5

Author Closing Comment

by:Michaelj42
ID: 40011195
Found a good solution.
0
 
LVL 75
ID: 40011545
And what was that solution ?
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

623 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