Process.Start(Picture and Fax Viewer)?

D

Dean Slindee

Regardless of how a user may have image files associated with viewers, I
would like to hardwire a call to the Microsoft Picture and Fax Viewer from
my application. Anyone know how to format the Process.Start() statement(s)
to accomplish this with the shimgvw.dll? My best guess is below, but it
does not work.
Dim proc As New Process

proc = Process.Start("C:\Windows\system32\rundll32.exe",
"C:\windows\system32\shimgvw.dll,ImageView_Fullscreen C:\image.bmp")

Thanks,
Dean Slindee
 
J

John Inzer

Dean said:
Regardless of how a user may have image files associated
with viewers, I would like to hardwire a call to the
Microsoft Picture and Fax Viewer from my application.
Anyone know how to format the Process.Start()
statement(s) to accomplish this with the shimgvw.dll? My
best guess is below, but it does not work.
Dim proc As New Process

proc = Process.Start("C:\Windows\system32\rundll32.exe",
"C:\windows\system32\shimgvw.dll,ImageView_Fullscreen
C:\image.bmp")

Thanks,
Dean Slindee
===============================================
I saved the following string from a previous message
and it works for me if I use in in my Run field...maybe
it's what you are looking for:

rundll32.exe %SystemRoot%\System32\shimgvw.dll,ImageView_Fullscreen
[now add a space and enter the full path to the image file]

--

John Inzer
Picture It! MVP
return e-mail disabled

Picture It! Support Center
http://support.microsoft.com/?pr=pic
 

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