Solved

How to call windows picture and fax viewer in vb.net 2008

Posted on 2010-09-08
5
1,042 Views
Last Modified: 2012-05-10
Hello,

I copy all the images from the source (folder that user specifies) into a sub-folder in my application folder. Now I want to allow user to view these images using Windows Picture and fax viewer.

1. How can I do this? Only calling explorer.exe does not solve this problem because it does not actually load the picture and fax viwer.

2. Is this picture and fax viewer part of XP installation or will I have to ship anything with my exe?

3. My images sub-folder would have many images. So it should load the first image and then allow user to navigate to next/previous images.

4. I cannot image file names since they would be any name.

Regards,
MI
0
Comment
Question by:vj_mi
  • 4
5 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 33628582
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 33628603
When you tried using explorer did u specify the full path of the image?

Process.Start("C:\Windows\Explorer.exe", "c:\images\myimage.bmp")
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 33628667
I think using Explorer, it might run the registered Open command which may not be the image viewer
0
 
LVL 65

Accepted Solution

by:
rockiroads earned 500 total points
ID: 33629129
if u want to call the windows image and fax viewer this is the line to use, change it accordingly

c:\windows\system32\rundll32.exe c:\windows\system32\shimgvw.dll,ImageView_Fullscreen c:\temp\myimage.jpg
0
 
LVL 29

Expert Comment

by:nffvrxqgrcfqvvc
ID: 33636761
The Picture and Fax Viewer feature is supported only under Windows XP. If your intention is to use the feature on later operatings systems don't depend on Picture and Fax Viewer.
It wouldn't be to difficult to creat your own "Viewer"  as mentioned @http:#33628582
There is tons of ways to work with images in .NET so using either the users default "Viewer" or creating your own is the best option.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now