Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Raedle is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    8

    Backstage - custom images not displaying

    I use the following code to load a image.

    <imageControl id="imHelp1" image="Logo.bmp" visible="true" />

    The file is stored in the same folder as the MS Access program.



    It worked at one time, and suddenly it does not load images. Can you please help me figuring out what is wrong? Thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Never seen this before. Why is that code enclosed in <>? Exactly where is this code? Exactly where is this image displayed?

    I would use the ControlSource property of Image control on a form or report.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Raedle is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    8

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Okay, now looks familiar. I have done this to customize ribbon to disable stuff and custom QAT. Seem to remember testing some customized ribbon buttons.

    Where is the image supposed to show up? As an icon on ribbon? Or logo in upper left corner? Have you looked at the Current Database Option for Application Icon?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Raedle is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    8
    The image should show up in the Backstage view. Click File...

    This issue drives me nuts. Load the XML from a working data base in a new database and does not work.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    But WHERE in the Backstage view should it show?

    If you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    Raedle is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    8
    Click image for larger version. 

Name:	Capture.jpg 
Views:	23 
Size:	50.9 KB 
ID:	23073 XML code:

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    <backstage>
    <button idMso="FileSave" visible="false"/>
    <button idMso="SaveObjectAs" visible="false"/>
    <button idMso="FileSaveAsCurrentFileFormat" visible="false"/>
    <button idMso="FileOpen" visible="false"/>
    <button idMso="FileCloseDatabase" visible="true"/>
    <tab idMso ="TabInfo" visible="false"/>
    <tab idMso ="TabRecent" visible="false"/>
    <tab idMso ="TabNew" visible="false"/>
    <tab idMso ="TabPrint" visible="false"/>
    <tab idMso ="TabShare" visible="false"/>
    <tab idMso ="TabHelp" visible="false"/>
    <button idMso="ApplicationOptionsDialog" visible="true"/>
    <button idMso="FileExit" visible="false"/>
    <tab id="Tab1" label="My Tab">
    <firstColumn>
    <group id="myGroup" style="normal" label="ImageControl:">
    <topItems>
    <layoutContainer id="layInfo1" layoutChildren="horizontal" align="topLeft">
    <imageControl id="img1" imageMso="AppointmentColorDialog"/>
    <labelControl id="lbl1" label="Imgage 1"/>
    </layoutContainer>
    <layoutContainer id="layInfo2" layoutChildren="horizontal" align="topLeft">
    <imageControl id="img2" imageMso="AppointmentColorDialog"/>
    <labelControl id="lbl2" label="Imgage 2"/>
    </layoutContainer>
    <layoutContainer id="layInfo3" layoutChildren="horizontal" align="topLeft">
    <imageControl id="img3" image="C:\Projects\Quoting\BEC\Logo.bmp"/>
    <labelControl id="lbl3" label="Imgage 3"/>
    </layoutContainer>
    </topItems>
    </group>
    </firstColumn>
    </tab>
    </backstage>
    </customUI>

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I am not interested in building db to test this. If you want to provide db, I will check it out.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    Raedle is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    8

    Here is sample database

    Here is the sample database
    Attached Files Attached Files

  10. #10
    Raedle is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    8
    Can anyone test the code on their machine? Thanks.

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Patience. Had to download this morning.

    This is weird. Since you did not provide image, I am trying to test with mine. I am trying to type in the table field and it acts bizarre. The cursor placement is 'off' - it sits in middle of letter and typing just screws everything. Have no idea what is happening. Certainly never encountered in my USysRibbons table. Had to delete that text and replace with the code copied from post 7.

    However, I am still getting the issue you encounter - image does not show. Example db from http://www.accessribbon.de/en/?Acces...Backstage_View shows using filepath to pull in image. Unfortunately, that db does not pull in image either. Also, it shows a happy face button and don't really know why. I see the xml record for this button but don't know where the code is invoked. This brings back memory of lot of frustration when I first started working on customized ribbon.

    Sorry, no closer to an answer.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  12. #12
    Raedle is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    8

    Callback

    I use callback function and it works. Still don't know why image="logo.bmp" would not work. It should!

  13. #13
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Great! I tried the callback and wasn't having luck. Agree, the path reference should work but it's not and glad you got it to work at least somehow. This is resolved? Want to post how you managed it?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  14. #14
    Raedle is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    8

    Callback Example

    Website with tons of samples and a create ribbon tool is here: AccessRibbon.com
    Attached Files Attached Files

  15. #15
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    That is the same site as link in post 11.

    Thanks for the solution. I was not catching on to the control.tag parameter.

    But again, same issue trying to edit the xml text for my image file. Very weird.

    Finally got image to load. Did not like png, had to use bmp.

    Thanks again for the follow up.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Attachment Images displaying Sideways
    By Scalec in forum Forms
    Replies: 4
    Last Post: 07-06-2017, 06:25 PM
  2. Replies: 2
    Last Post: 01-07-2013, 05:23 AM
  3. Displaying bound images in a form
    By munroe47 in forum Forms
    Replies: 5
    Last Post: 07-10-2012, 06:18 PM
  4. Replies: 1
    Last Post: 02-13-2012, 06:18 AM
  5. Displaying images from another folder
    By w3leon in forum Access
    Replies: 0
    Last Post: 01-30-2009, 06:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums