Solved

Trouble getting a custom Access ribbon to show a png.

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Outlook Free & Paid Tools
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

685 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