Solved

Trouble getting a custom Access ribbon to show a png.

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
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.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
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…

734 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