Viewing images (3rd try)

  • Thread starter Thread starter SBD
  • Start date Start date
S

SBD

Maybe if I change the scope of the question I can get an
answer.

I have an app (Access 97) where check images will be
scanned and stored in a folder. The app will record info
about these checks. I also use an unbound image control to
display the scanned image. However, the image box isn't
quite large enough to read the scanned image. So I would
like a way to double click the image and load it in an
external viewer. But I haven't been able to figure that
out. Does anyone have a solution to this?

Scott<>
 
SBD said:
Maybe if I change the scope of the question I can get an
answer.

I have an app (Access 97) where check images will be
scanned and stored in a folder. The app will record info
about these checks. I also use an unbound image control to
display the scanned image. However, the image box isn't
quite large enough to read the scanned image. So I would
like a way to double click the image and load it in an
external viewer. But I haven't been able to figure that
out. Does anyone have a solution to this?

Scott<>

Assuming you have stored the name and, if necessary, path to each image
file, and that there is a registered application to view images of that
type, then you could use something like

Private Sub imgShowPicture_DblClick()

Dim strImagePath As String

strImagePath = RetrievePictureFolder() & "\" Me!ImageFile

Application.FollowHyperlink strImagePath

End Sub

Or else you could call the ShellExecute API, or use Shell() to invoke
the viewer application and provide the image path on the command line
you pass.
 
Thanks Dirk,

That's exactly what I was looking for. It works perfectly.
This way each user can use their own favorite registered
viewer.
 
Back
Top