PercyN
Programmer
- May 16, 2007
- 86
Hi,
I am using the code below to upload images to my custom controls on my custom ribbon in acess 2007 but I keep getting this error message no. 481 "Invalid Image". When I try with a .bmp file it works but all my images are in .png fromat. How can I get around this?
I am using the code below to upload images to my custom controls on my custom ribbon in acess 2007 but I keep getting this error message no. 481 "Invalid Image". When I try with a .bmp file it works but all my images are in .png fromat. How can I get around this?
Code:
Function onGetImage(control As IRibbonControl, ByRef image)
Select Case control.ID
Case "cmdSalesHome":
Set image = LoadPicture("C:\Users\user\Documents\My Projects\AutoMate DMS\Calc.png")
End Select
End Function