Solved

Trouble getting a custom Access ribbon to show a png.

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
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…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

839 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