Windows Photo Viewer


U

ulrich1947

Hi, everybody

I want to show a ".jpg" pic in Windows Photo Viewer in Access 2000 by Shell
Command. Now I do it by using

BildErgebnis = Shell("C:\Program Files\IrfanView\i_view32.exe " &
allgKZalph1, 1)

which opens the file (Full Path contained in allgKZalph1) by Irfan View. How
do I change that to have it opened by Photo Viewer? By the way, I use Windows
7.

Anyone can help ? Thanks in advance.

Ulrich
 
Ad

Advertisements

D

Douglas J. Steele

Won't that only work if the jpg file extension has been linked to Windows
Photo Viewer?

To guarantee that Photo Viewer is used, you'd need to replace "C:\Program
Files\IrfanView\i_view32.exe " in the code below with the full path to
Photo Viewer. Unfortunately, I don't have Photo Viewer installed on this
machine, so I can't tell you the name of the executable.
 
U

ulrich1947

Hi, again !
Thanks for trying to help me. jpg file extension is linked to Windows Photo
Viewer. When I click on a files name in the file directory, it uses
automatically that application. So I first tried the command

BildErgebnis = Shell("C:\subLW\ARCHIV\ConSy\Food\303\9377-8.jpg", 1)

but that leads to Error No. 5 (invalid procedure or argument). My problem
is, i do not know any path to Photo Viewer. I cannot find any .exe file in
Windows 7 for it. The only thing I can trace is C:\Program Files\Windows
Photo Viewer\ImagingDevices.exe which is not what I want nor need. (has
something to do with connecting a scanner or cam).

I wonder whether the API Function will work instead. I'll try soon.

However, thanks a lot.

Ulrich
 
Ad

Advertisements

D

Dagett2001

ulrich1947 said:
Hi, again !
Thanks for trying to help me. jpg file extension is linked to Windows Photo
Viewer. When I click on a files name in the file directory, it uses
automatically that application. So I first tried the command

BildErgebnis = Shell("C:\subLW\ARCHIV\ConSy\Food\303\9377-8.jpg", 1)

but that leads to Error No. 5 (invalid procedure or argument). My problem
is, i do not know any path to Photo Viewer. I cannot find any .exe file in
Windows 7 for it. The only thing I can trace is C:\Program Files\Windows
Photo Viewer\ImagingDevices.exe which is not what I want nor need. (has
something to do with connecting a scanner or cam).

I wonder whether the API Function will work instead. I'll try soon.

However, thanks a lot.

Ulrich
you could possibley do it by just going to the folder where the .jpg is and
right clicking it and going to >Open with>Choose Default Program Then it
should be in a list of programs to use.... if it doesnt show up in the list
then you gotta find it the program manually but once again i also do not know
where the .exe is truley located (also have tried to find for different
reasons) so if it doesnt show up in the list I'm not sure how to proceed from
there :(
 
Ad

Advertisements


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

Similar Threads


Top