DataBase - Windows Photo Viewer
Asked By ulrich1947
12-Nov-09 11:41 AM
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
Windows 7
(1)
WindowsPhoto
(1)
ShellExecute
(1)
BildErgebnis
(1)
AllgKZalph1
(1)
DougSteele
(1)
Ulrich
(1)
Irfan
(1)
Alex Dybenko replied to ulrich1947
Hi,
try using ShellExecute API:
http://www.mvps.org/access/api/api0018.htm
--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com
Douglas J. Steele replied to Alex Dybenko
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 would need to replace "C:\Program
Files\IrfanView\i_view32.exe " in the code below with the full path to
Photo Viewer. Unfortunately, I do not have Photo Viewer installed on this
machine, so I cannot tell you the name of the executable.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
Alex Dybenko replied to Douglas J. Steele
Hi Doug,
you right, I am assuming that jpg linked to photo viewer, like on default
installation
--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com
ulrich1947 replied to Douglas J. Steele
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 will try soon.
However, thanks a lot.
Ulrich
Dagett2001 replied to ulrich1947
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 am not sure how to proceed from
there :(
Windows 7 DataBase What versions of GP are supported on Windows 7 64bit? Is version 9.0 supported? Thanks Great Plains Discussions Windows 7 (1) Yudin (1) Only GP 10.0 is officially supported on Windows 7. - - Victoria Yudin Dynamics GP MVP Want to use Crystal Reports with GP? http: / / www.flex
outlook mail DataBase Is Outlook Express working O.K. with Windows 7? Access Discussions Windows 7 (1) Outlook (1) Vista (1) Outlook Express (1) 1. If you have questions about Windows 7, please ask in the Windows 7 support forums, here: http: / / social.answers.microsoft.com / Forums / en-US / category / windows7 http: / / social
Windows 7 DataBase Windows 7 starter can only run 3 apps at a time? Access Security Discussions Windows 7 (1) Office (1) Database (1) DougSteele (1) Databaseproduct (1) Apps (1) This newsgroup is for Professional. You'd be best off reposting your question to a newsgroup that deals with Windows. - - Doug Steele, Microsoft Access MVP http: / / I.Am / DougSteele (no private e-mails, please) keywords: Windows, 7 description: Windows 7 starter can only run 3 apps at a time?
Access 2003 and Windows 7 DataBase I upgraded windows xp to windows 7. My Access 2003 .MDB files are not working corectly in windows 7. When I try to open a form, I get a query parameter box and then or class does not support the set of events." When working in xp mode of Windows 7 it works fine. Any suggestions? Access Discussions Office 2003 (1) Access 2003 (1) Windows