Solved

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

Posted on 2010-09-08
5
1,057 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vb.net deleting excel sheet in workbook 11 52
Create a button class for use in all vb.net apps 5 41
Help with Report Viewer in VS2013 6 28
Datatable / Dates ? 4 25
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

738 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