Forum Discussion

scaffnull's avatar
scaffnull
Brass Contributor
Mar 31, 2022

Clickable Icon that display a picture when clicked on it

Hello everyone, 

 

I believe there probably is a solution to this but I can't seem to find it.

 

In my word document, I want to have a table with information and one column with the header "Picture".

How do I get so the picture isn't full size, rather a hyperlink (best case would be a camera icon) that when clicked on, displays the picture. (See picture)

 

 So here if I click on the camera it displays another picture (for example my dog).

 

Is this possible, and if so how do I solve this! 

 

Thanks 🙂

 

 

  • scaffnull Use an MacroButton field to run a macro containing the following code:

     

    Shell "RunDLL32.exe C:\Windows\System32\Shimgvw.dll,ImageView_Fullscreen _

    C:\Users\dkr\Pictures\Heath Fair.jpg"

    Replace the 

    C:\Users\dkr\Pictures\Heath Fair.jpg

    with the path\filename of the image that you want to be displayed.

     

    For the display text of the MacroButton field, you can use an INCLUDETEXT field to display and image such as a camera, which when double clicked on will display the picture whose path\filename is included in the Shell command using the Windows Photo Viewer.

Resources