Solved

Trouble getting a custom Access ribbon to show a png.

Posted on 2014-04-15
5
566 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article will show you how to use shortcut menus in the Access run-time environment.
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

762 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

19 Experts available now in Live!

Get 1:1 Help Now