Click opening a specific jpg with Microsoft Photo Editor

G

Guest

Has anyone written code to open a specific file with microsoft photo editor
or windows picture and fax viewer. When a button is selected, I wanted the
access code to open microsoft photo editor... but the catch is to open with
the fetch option of a specific file name.. say on the c: drive.. etc.
 
J

Joerg Ackermann

gld said:
Has anyone written code to open a specific file with microsoft photo
editor or windows picture and fax viewer. When a button is
selected, I wanted the access code to open microsoft photo editor...
but the catch is to open with the fetch option of a specific file
name.. say on the c: drive.. etc.

Try:

Public Sub OpenByPhotoEditor(strFile As String)

Dim strPfad As String

strPfad = "C:\Program Files\Common Files\Microsoft
Shared\PhotoEd\PHOTOED.EXE "
Shell strPfad & strFile

End Sub

Public Sub OpenByImageView(ByVal strFile As String)

Shell "rundll32.exe " & _
Environ("Windir") & _
"\system32\shimgvw.dll,ImageView_Fullscreen " & strFile

End Sub

Acki
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top