none
To enlarge the image in word by single click. RRS feed

  • Question

  • Hi

    Currently in Microsoft word we have an option to insert the image in "Bitmap Image" format.
    We want to open the image in Windows photo viewer option.

    Please help us on this, also attached the image for your reference.

    Thursday, July 20, 2017 12:31 PM

Answers

  • Hello,

    >>To enlarge the image in word by single click

    You could handle Application_WindowSelectionChange event to enlarge the image by single click.

    E.g.

    Public WithEvents app As Application
    
    Private Sub Document_Open()
    Set app = Application
    End Sub
    
    Private Sub app_WindowSelectionChange(ByVal Sel As Selection)
    
    End Sub

    >>We want to open the image in Windows photo viewer option.

    You could use shell command to open a picture in Windows photo viewer

    Call Shell("RunDLL32.exe C:\Windows\SYSTEM32\shimgvw.dll,ImageView_Fullscreen D:\test.bmp")

    If you want to click the image in the word and the image would be opened in the Windows photo viewer, you could save the image into a temporary path and use shell command to open the file into Windows photo viewer.

    Regards,

    Celeste


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Arunhcl Friday, July 21, 2017 9:44 AM
    Friday, July 21, 2017 7:14 AM
    Moderator

All replies

  • You would have to extract the image from the Word file to do that.

    If all you want to do is resize the image within Word, see: http://www.msofficeforums.com/drawing-graphics/12668-how-click-one-picture-another-picture-will.html


    Cheers
    Paul Edstein
    [MS MVP - Word]


    • Edited by macropodMVP Thursday, July 20, 2017 11:04 PM
    Thursday, July 20, 2017 11:00 PM
  • Which is your question, "how to enlarge the inserted image in Word by single click" or "how to open it in Photo Viewer"?

    Ashidacchi

    Friday, July 21, 2017 3:12 AM
  • Hello,

    >>To enlarge the image in word by single click

    You could handle Application_WindowSelectionChange event to enlarge the image by single click.

    E.g.

    Public WithEvents app As Application
    
    Private Sub Document_Open()
    Set app = Application
    End Sub
    
    Private Sub app_WindowSelectionChange(ByVal Sel As Selection)
    
    End Sub

    >>We want to open the image in Windows photo viewer option.

    You could use shell command to open a picture in Windows photo viewer

    Call Shell("RunDLL32.exe C:\Windows\SYSTEM32\shimgvw.dll,ImageView_Fullscreen D:\test.bmp")

    If you want to click the image in the word and the image would be opened in the Windows photo viewer, you could save the image into a temporary path and use shell command to open the file into Windows photo viewer.

    Regards,

    Celeste


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Arunhcl Friday, July 21, 2017 9:44 AM
    Friday, July 21, 2017 7:14 AM
    Moderator